Multithreading versus Multiprocessing in Mac OS X.

By: Aaron Hillegass Emailed: 1602 times Printed: 2075 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

Multithreading gets a lot of hype because it enables you to take advantage of multiple processors and cores. Multithreading can also ensure that your application stays responsive while it is doing some sort of processing in the background. Multithreaded programming is, however, difficult: The activities of one thread often stomp on the data being used by another.

You can often use multiprocessing to get much of the benefit of multithreaded programming with few of the headaches. That is, instead of creating a new thread to do some sort of processing, simply create a whole new process.

Following are other benefits of multiprocessing over multithreading.

  • Rewriting the capabilities of many command line tools would be very time consuming.

  • If you have a memory leak in the external process, the operating system will clean up for you when the external process ends.

  • The external process can run as a user other than the application. Thus, the external process can have a set of permissions completely different from those of the application.

Although not as glamorous as multithreading, multiprocessing is probably more useful in real life.


Cocoa Home | All Cocoa Tutorials | Latest Cocoa Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.



Bookmark and Share

Comments(0)


Be the first one to add a comment

Your name (required):


Your email(required, will not be shown to the public):


Your sites URL (optional):


Your comments:



More Tutorials by Aaron Hillegass
Printing in Mac Cocoa Programming
Web Services in Mac Cocoa Programming
Weak References in Mac Cocoa Programming
Garbage Collector in Cocoa Programming in Mac
Using NSOpenGLView in Cocoa Programming in Mac
Multithreading versus Multiprocessing in Mac OS X.
Life Cycle of a Cocoa Application
Frameworks in Cocoa Programming
Objects, Classes, Methods, and Messages in Cocoa Programming
Programming Language used in Cocoa Programming
What is Cocoa? A brief history of Cocoa.
Tools for Cocoa Programming

More Tutorials in Cocoa
Listing of files in a tar file in Mac OS X.
Listing of files in a zip file in Mac OS X.
Multithreading versus Multiprocessing in Mac OS X.
Using NSOpenGLView in Cocoa Programming in Mac
Garbage Collector in Cocoa Programming in Mac
Weak References in Mac Cocoa Programming
Web Services in Mac Cocoa Programming
Printing in Mac Cocoa Programming
Tools for Cocoa Programming
What is Cocoa? A brief history of Cocoa.
Programming Language used in Cocoa Programming
Objects, Classes, Methods, and Messages in Cocoa Programming
Frameworks in Cocoa Programming
Life Cycle of a Cocoa Application

More Latest News
Most Viewed Articles (in Cocoa )
What is Cocoa? A brief history of Cocoa.
Multithreading versus Multiprocessing in Mac OS X.
Weak References in Mac Cocoa Programming
Tools for Cocoa Programming
Programming Language used in Cocoa Programming
Objects, Classes, Methods, and Messages in Cocoa Programming
Frameworks in Cocoa Programming
Life Cycle of a Cocoa Application
Listing of files in a tar file in Mac OS X.
Listing of files in a zip file in Mac OS X.
Using NSOpenGLView in Cocoa Programming in Mac
Garbage Collector in Cocoa Programming in Mac
Web Services in Mac Cocoa Programming
Printing in Mac Cocoa Programming
Most Emailed Articles (in Cocoa)
Weak References in Mac Cocoa Programming
Tools for Cocoa Programming
Objects, Classes, Methods, and Messages in Cocoa Programming
Frameworks in Cocoa Programming
Listing of files in a tar file in Mac OS X.
Using NSOpenGLView in Cocoa Programming in Mac
Web Services in Mac Cocoa Programming
Printing in Mac Cocoa Programming
What is Cocoa? A brief history of Cocoa.
Programming Language used in Cocoa Programming
Life Cycle of a Cocoa Application
Listing of files in a zip file in Mac OS X.
Garbage Collector in Cocoa Programming in Mac
Multithreading versus Multiprocessing in Mac OS X.