Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is a task?



Hi Bob,

The terminology has gotten a little confusing between those two examples.

The notification center reference should say (IMHO) thread, not task.
Please raise a radar bug on this at bugreport.apple.com as the page contains both thread and task and definitely confuses them.


The terms thread and task are sometimes used interchangeably and mean the same thing. But sometimes they do mean different things.
This has been a confusing issue for a long time so I doubt that it will ever be properly resolved other than by conventions within individual groups of developers or in particular workplaces.


Personally I think of a thread as an executable that I can ask to do different tasks for me, where a task is a job that I need done.

Hope that helps,

Wain

On 20 Oct 2007, at 14:23, Bob Ueland wrote:

In 'NSNotificationCenter Class Reference' it says:

Each task has a default notification center.

I wonder what a task is?

In
'Multithreading Programming Topics' it says:


In Mac OS X, each process (application) is made up of one or more threads. ...Threads let your program perform multiple tasks in parallel.... Each
thread has its own execution stack and is scheduled for runtime
separately by the kernel.



From the above description it is clear what a thread is. But what is a task? Can a thread have several tasks with each task having its own default notification center?


Bob

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >What is a task? (From: Bob Ueland <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.