• Complain

Vandad Nahavandipoor - Concurrent Programming in Mac OS X and iOS

Here you can read online Vandad Nahavandipoor - Concurrent Programming in Mac OS X and iOS full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2011, publisher: OReilly Media, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    Concurrent Programming in Mac OS X and iOS
  • Author:
  • Publisher:
    OReilly Media
  • Genre:
  • Year:
    2011
  • Rating:
    4 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 80
    • 1
    • 2
    • 3
    • 4
    • 5

Concurrent Programming in Mac OS X and iOS: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Concurrent Programming in Mac OS X and iOS" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Now that multicore processors are coming to mobile devices, wouldnt it be great to take advantage of all those cores without having to manage threads? This concise book shows you how to use Apples Grand Central Dispatch (GCD) to simplify programming on multicore iOS devices and Mac OS X.

Managing your applications resources on more than one core isnt easy, but its vital. Apps that use only one core in a multicore environment will slow to a crawl. If you know how to program with Cocoa or Cocoa Touch, this guide will get you started with GCD right away, with many examples to help you write high-performing multithreaded apps.

  • Package your code as block objects and invoke them with GCD
  • Understand dispatch queuesthe pools of threads managed by GCD
  • Use different methods for executing UI and non-UI tasks
  • Create a group of tasks that GCD can run all at once
  • Instruct GCD to execute tasks only once or after a...
  • Vandad Nahavandipoor: author's other books


    Who wrote Concurrent Programming in Mac OS X and iOS? Find out the surname, the name of the author of the book and a list of all author's works by series.

    Concurrent Programming in Mac OS X and iOS — read online for free the complete book (whole text) full work

    Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Concurrent Programming in Mac OS X and iOS" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

    Light

    Font size:

    Reset

    Interval:

    Bookmark:

    Make
    Concurrent Programming in Mac OS X and iOS
    Vandad Nahavandipoor
    Editor
    Andy Oram

    Copyright 2011 Vandad Nahavandipoor

    OReilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (.

    Nutshell Handbook, the Nutshell Handbook logo, and the OReilly logo are registered trademarks of OReilly Media, Inc. Concurrent Programming in Mac OS X and iOS , the image of a Russian greyhound, and related trade dress are trademarks of OReilly Media, Inc.

    Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and OReilly Media, Inc., was aware of a trademark claim, the designations have been printed in caps or initial caps.

    While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein.

    OReilly Media A Note Regarding Supplemental Files Supplemental files and - photo 1

    O'Reilly Media

    A Note Regarding Supplemental Files

    Supplemental files and examples for this book can be found at http://examples.oreilly.com/0636920020332/. Please use a standard desktop web browser to access these files, as they may not be accessible from all ereader devices.

    All code files or examples referenced in the book will be available online. For physical books that ship with an accompanying disc, whenever possible, weve posted all CD/DVD content. Note that while we provide as much of the media content as we are able via free download, we are sometimes limited by licensing restrictions. Please direct any questions or concerns to .

    Preface

    With the introduction of multicore devices such as the iPad 2 and the quad-core MacBook Pro, writing multithreaded apps that take advantage of multiple cores on a device has become one of the biggest headaches for developers. Take, for instance, the introduction of iPad 2. On the launch day, only a few applications, basically those released by Apple, were able to take advantage of its multiple cores. Applications like Safari performed very well on the iPad 2 compared to the original iPad, but some third-party browsers did not perform as well as Safari. The reason behind this is that Apple has utilized Grand Central Dispatch (GCD) in Safaris code base. GCD is a low-level C API that allows developers to write multithreaded applications without the need to manage threads at all. All developers have to do is define tasks and leave the rest to GCD.

    The trend in the industry is mobility . Mobile devices, whether they are as compact as an iPhone or as strong and full-fledged as an Apple MacBook Pro, have many fewer resources than computers such as the Mac Pro, because all the hardware has to be placed inside the small devices compact bodies. Because of this, it is very important to write applications that work smoothly on mobile devices such as the iPhone. We are not that far away from having quad-core or 8-core smartphones. Once we have 8 cores in the CPU, an app executed on only one of the cores will run tremendously more slowly than an app that has been optimized with a technology such as GCD, which allows the code to be scheduled on multiple cores without the programmer having to manage this synchronization .

    Apple is pushing developers away from using threads and is slowly starting to integrate GCD into its various frameworks. For instance, prior to the introduction of GCD in iOS, operations and operation queues used threads. With the introduction of GCD, Apple completely changed the implementation of operations and operation queues by using GCD instead of threads.

    This book is written for those of you who want to do what Apple suggests and what seems like the bright future for software development: migrating away from threads and allowing the operating system to take care of threads for you, by replacing thread programming with GCD.

    Audience

    In this book, I assume that you have a fairly basic understanding of the underlying technologies used in writing iOS and/or Mac OS X applications. We will not be discussing subjects related to Cocoa Touch or Cocoa. We will be using code that works, in principle and GCD layer, both with iOS and Mac OS X. Therefore, you will need to know the basics of Objective-C and your way around basic functionalities utilized by Core Foundation, such as string manipulation and arrays.

    Note

    OReillys iOS 4 Programming Cookbook is a good source for more about object allocation, arrays, and UI-related code, in case you are looking to broaden your perspective toward iOS programming.

    Conventions Used in This Book

    The following typographical conventions are used in this book:

    Italic

    Indicates new terms, URLs, email addresses, filenames, and file extensions.

    Constant width

    Used for program listings, as well as within paragraphs to refer to program elements such as variable or function names, databases, data types, environment variables, statements, and keywords.

    Constant width bold

    Shows commands or other text that should be typed literally by the user.

    Constant width italic

    Shows text that should be replaced with user-supplied values or by values determined by context.

    Tip

    This icon signifies a tip, suggestion, or general note.

    Using Code Examples

    This book is here to help you get your job done. In general, you may use the code in this book in your programs and documentation. You do not need to contact us for permission unless youre reproducing a significant portion of the code. For example, writing a program that uses several chunks of code from this book does not require permission. Selling or distributing a CD-ROM of examples from OReilly books does require permission. Answering a question by citing this book and quoting example code does not require permission. Incorporating a significant amount of example code from this book into your products documentation does require permission.

    We appreciate, but do not require, attribution. An attribution usually includes the title, author, publisher, and ISBN. For example: Concurrent Programming in Mac OS X and iOS by Vandad Nahavandipoor (OReilly). Copyright 2011 Vandad Nahavandipoor, 9781449305635.

    If you feel your use of code examples falls outside fair use or the permission given above, feel free to contact us at .

    Safari Books Online
    Note

    Safari Books Online is an on-demand digital library that lets you easily search over 7,500 technology and creative reference books and videos to find the answers you need quickly.

    With a subscription, you can read any page and watch any video from our library online. Read books on your cell phone and mobile devices. Access new titles before they are available for print, and get exclusive access to manuscripts in development and post feedback for the authors. Copy and paste code samples, organize your favorites, download chapters, bookmark key sections, create notes, print out pages, and benefit from tons of other time-saving features.

    OReilly Media has uploaded this book to the Safari Books Online service. To have full digital access to this book and others on similar topics from OReilly and other publishers, sign up for free at http://my.safaribooksonline.com.

    Next page
    Light

    Font size:

    Reset

    Interval:

    Bookmark:

    Make

    Similar books «Concurrent Programming in Mac OS X and iOS»

    Look at similar books to Concurrent Programming in Mac OS X and iOS. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


    Reviews about «Concurrent Programming in Mac OS X and iOS»

    Discussion, reviews of the book Concurrent Programming in Mac OS X and iOS and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.