This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: timetable change on mingw-libgcj


Boehm, Hans wrote:

>How are MacOSX threads implemented?  Do they map directly to kernel threads?
>

Yes, theres an overview of the Mac OS X threading here:

http://developer.apple.com/techpubs/macosx/Essentials/SystemOverview/InverEnvironissues/Threading_Packages.html

The only problem with that nice diagram is that the posix threads 
support isn't actually complete.

>
>Is there a way to stop a thread other than by sending it a signal?
>
Mach does provide a thread_suspend() and thread_resume(), and you can 
more or less mix direct mach calls with pthreads calls since pthreads is 
just a layer over mach. I presume there is also a way to get the 
register state of a suspended thread, but I havn't really looked yet.

Apple are planning to implement the missing pthreads functionality (ie 
pthread_kill) at some point, but I wouldn't hold my breath ;-)

regards

Bryce.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]