Mac freezes if you create too many threads
Mac freezes if you create too many threads
- Subject: Mac freezes if you create too many threads
- From: Jerry Krinock <email@hidden>
- Date: Thu, 22 Apr 2010 08:29:11 -0700
Probably incidental to the NSURLConnection issue which is the subject of another thread on cocoa-dev today, I've found a way to freeze my Mac by invoking -[NSThread detachNewThreadSelector:toTarget:] about 1300 times in a loop. Moving the mouse is the only thing that works after the freeze. Mouse clicks and cmd-tab application switching are dead.
Of course, this is a stupid thing to do. But I wonder does the Mac OS have any mechanism built in to prevent an app from spawning so many threads that the system freezes?
Thanks,
Jerry Krinock _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden