<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV>Rodney:</DIV>
<DIV> </DIV>
<DIV>I believe that on Windows (Win32) the implementation uses native OS threads. At least that is how it worked for cm v4.1.</DIV>
<DIV> </DIV>
<DIV>Regards,</DIV>
<DIV>Randy</DIV>
<DIV> </DIV>
<DIV>Randy C. Coleburn<BR>Senior Systems Engineer, Communications, Networks, & Electronics Division (CNE)<BR>Corporate & Atlanta Information Systems Security Manager (ISSM)<BR>Scientific Research Corporation<BR>2300 Windy Ridge Parkway, Suite 400 South, Atlanta, Georgia 30339<BR>voice: (770) 989-9464, email: RColeburn@SciRes.com, fax: (770) 989-9497<BR><BR>Quality Policy: "SRC CNE Division is committed to delivering continually improving research & engineering excellence that meets or exceeds customer requirements."<BR><BR>>>> "Rodney M. Bates" <rodney.bates@wichita.edu> 8/8/2007 7:20 PM >>><BR>I have been doing some work on m3gdb lately and am mulling over<BR>trying to improve the very rudimentary thread support. With<BR>the new thread implementation, it is a good time. I would like<BR>confirmation (or correction) of the following impressions I have<BR>gotten about thread handling in implementations of Modula-3.<BR><BR>Here's what I think I understand:<BR><BR>The old system uses threads entirely implemented in libm3core,<BR>using setjmp/longjmp to get execution moved around where it is<BR>needed.<BR><BR>The new system, called for by -DPTHREAD uses the pthreads library instead.<BR><BR>There is no use of any kind of kernel threads.<BR><BR>The old thread system is tied to the older GC, which requires that<BR>system-dependent wrappers be used for many OS system calls.<BR><BR>The new thread system is tied to the new GC, which doesn't need<BR>the wrappers, but has the compiler inserting calls to the GC in<BR>a few places.<BR><BR>Is this all correct?<BR><BR>-- <BR>-------------------------------------------------------------<BR>Rodney M. Bates, retired assistant professor<BR>Dept. of Computer Science, Wichita State University<BR>Wichita, KS 67260-0083<BR>316-978-3922<BR>rodney.bates@wichita.edu<BR><BR></DIV></BODY></HTML>