Mailing Lists: Apple Mailing Lists

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

pthread_* functionality currently in OS X



I am porting a (hairy) Solaris app to OS X which makes heavy use of the
pthread libraries (blocking, unblocking, cond vars, mutexes, etc.).  When 
I try to have the main thread sleep somehow (I have tried sleep(), sem_wait(),
pthread_cond_wait()) after spawning and starting all the other pthreads,
the program just pegs the CPU when the main thread gets to this call.

Is there something in the pthread libs which might not yet be complete
which would cause something like this?  Is this a matter of setting 
priorities correctly?  Any other bells going off because of this behavior?
TIA.

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





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.