🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #717

CreateThread using malloc

#717
From: Fan Jiao
Date: Wed, 15 Apr 1992 19:19
14 lines
901 bytes
I was using CreateThread call to create several threads.  Before that I was
using 'malloc' to create the stack which is needed as one of the parameters
for 'CreateThread' call.  

I donot know if use of 'malloc' is proper.  I also looked into the 
use of 'DosAllocSeg'.  And I got "wrong ring level" error msg while using
'DosAllocSeg'.

In short, I am confused in how to create the stack for theads. Any ideas?

Thanks much in advance.
-- 

Fan Jiao
Technical Details
Message-ID: <jj91eqk@twilight.wpd.sgi.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!sgi!dragon!twilight!remb6489.wpd.sgi.com!fanj

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer,comp.os.os2
Path: arc1-ca.pugleaf.net!sparky!uunet!haven.umd.edu!ames!sgi!dragon!twilight!remb6489.wpd.sgi.com!fanj
From: fanj@remb6489.wpd.sgi.com (Fan Jiao)
Subject: CreateThread using malloc
Message-ID: <jj91eqk@twilight.wpd.sgi.com>
Keywords: stack, DosAllocSeg
Sender: news@twilight.wpd.sgi.com ( CNews Account )
Reply-To: fanj@remb6489.wpd
Organization: SGI
Date: Wed, 15 Apr 92 19:19:57 GMT
Lines: 14