• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: What is a task?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: What is a task?


  • Subject: Re: What is a task?
  • From: Alastair Houghton <email@hidden>
  • Date: Sat, 20 Oct 2007 17:21:18 +0100

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?

The meaning of the word "task" depends on the context. Often (as in this instance), it means the same thing as "process".


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.

In this instance, "task" is being used as a generic term for some unit of work (the word "job" is also commonly used for this, though historically that might also have been confusing). It isn't the same meaning.


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?

No. The process (the first meaning of "task") has a default notification centre. Threads share that notification centre, though it's important to note that notifications will be delivered on the thread that sent them.


Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

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:
This email sent to email@hidden


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

  • Prev by Date: AppleScript running under Cocoa - major speed issue
  • Next by Date: Re: What is a task?
  • Previous by thread: Re: What is a task?
  • Next by thread: Window/View Size Constraining
  • Index(es):
    • Date
    • Thread