Article View: comp.os.os2
Article #1036Re: Problem with multiple threads ...
From: Lee Fisher
Date: Tue, 09 Jan 1990 19:30
Date: Tue, 09 Jan 1990 19:30
17 lines
1375 bytes
1375 bytes
[regarding the discussion of _beginthread() being unnecessary]
Yes, if you use the MS C 5.1 runtime functions inside a newly created
thread, you should be using _beginthread() to create it. If you're
using "pure" OS/2 APIs inside this thread (and no C RTL functions), you
can use DosCreateThread(). The _beginthread() function sets up things in
the C runtime so it can run properly.
For more information on _beginthread() (and multi-threaded programming
in general) with the MS C 5.1 compiler, see the file MTDYNA.DOC, included
in the C 5.1 disks. Also, I don't have the issue number handy, but about
six months ago there was an article in Microsoft Systems Journal that
discussed pros and cons of using these two functions.
--
lee fisher, leefi@microsoft.uu.net, leefi%microsoft@uw-beaver.mil
{uw-beaver,decvax,decwrl,fluke,intelca,sco,sun,uunet}!microsoft!leefi
disclaimer: my opinions are not necessarily those of my employer.
Technical Details
Message-ID:
<10198@microsoft.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!leefiReferences:
<1028@tuminfo1.lan.informatik.tu-muenchen.dbp.de> <3460@csccat.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uunet!microsoft!leefi From: leefi@microsoft.UUCP (Lee Fisher) Newsgroups: comp.os.os2 Subject: Re: Problem with multiple threads ... Message-ID: <10198@microsoft.UUCP> Date: 9 Jan 90 19:30:19 GMT References: <1028@tuminfo1.lan.informatik.tu-muenchen.dbp.de> <3460@csccat.UUCP> Distribution: comp.os.os2 Organization: Microsoft Corp., Redmond, WA Lines: 17