• 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: multithreading limits?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: multithreading limits?


  • Subject: Re: multithreading limits?
  • From: Ben Dougall <email@hidden>
  • Date: Mon, 30 Dec 2002 15:27:02 +0000

thanks for the reply Mark.

> what are the limits, if any other than simply the power of the computer, with
> multithreading? how many threads can you have? i'm hoping that you can have a
> large number of them.

Depends on what you mean by a 'large number'. dozens? hundreds? thousands?
more?

out of those options, more. i'm not sure how much more, but possibly a lot more.

It all depends on what you're planning on doing with them. If they're all
computationally expensive

i don't think they'll be particularly computationally expensive. quite inexpensive (i think), but lots of them.

but at the moment the efficiency side of it isn't too important to me. what is important to me is if it's going to be possible or not. if it ends up taking a while, so be it.

the threads will all be pretty similar, identical even (apart from their variable data), and they'll be doing simple text comparisons, and recording results of those comparisons.

Also remember that threads take up resources. They occupy a slot in
the scheduler, each thread has a chunk of memory to use as a stack. If
you're doing cocoa stuff in each thread you'll need an autorelease
pool, etc, etc.

so threading a task takes up more processor power than not threading the task.

Probably the best thing to do is to just wade in and try it, and see what happens.

yes, definitely. i was just worried that there might be a built in maximum number of possible threads that was a fairly small number, but that doesn't seem to be the case, so that's good. :)

thanks, ben.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: multithreading limits? (From: Mark Dalrymple <email@hidden>)

  • Prev by Date: dockling
  • Next by Date: Re: Using Protocols (complete message this time...)
  • Previous by thread: Re: multithreading limits?
  • Next by thread: No symbol in current context with ptype command in gdb
  • Index(es):
    • Date
    • Thread