[comp.sys.ibm.pc.programmer] Multi-thread on Ms-dos

bill@hpb.cis.pitt.edu (Bill Broadly) (03/19/91)

	I need a small C program that allows running more that
one thread, using setjmp, and longjmp, on a ms-dos machine.  Nothing 
pre-emptive needed.  
	Exactly what I wanted was in the Jan issue of C users Journal,
but I couldn't get it to work, and the author is in England (no Email
address).
	Anybody out there have such a beast?  Or get the one from the
magazine to work?  
	I don't want anything so involved as Ctask.  I don't need real
multitasking just the ability for one process to say "I done for now,
next process can run".
	I will happily mail the code to anyone if they want the
original (non-working) code from the article.
	I have (bought) MSC 6.0 (with revision), MSC 5.1, TC++.
			-Bill
			Broadley@schneider3.lrdc.pitt.edu

-- 
Bill Broadley
Broadley@schneider3.lrdc.pitt.edu
			"GISMO"

cadsi@ccad.uiowa.edu (CADSI) (03/20/91)

From article <104499@unix.cis.pitt.edu>, by bill@hpb.cis.pitt.edu (Bill Broadly):
> 
> 	I need a small C program that allows running more that
> one thread, using setjmp, and longjmp, on a ms-dos machine.  Nothing 
> pre-emptive needed.  
> 	Exactly what I wanted was in the Jan issue of C users Journal,
> but I couldn't get it to work, and the author is in England (no Email
> address).
> 	Anybody out there have such a beast?  Or get the one from the
> magazine to work?  

Get the Book "Born to Code in C".  I just can't remember the author
right now (Schiller or something like that).  It has a threaded 
multi-tasker in it that works (for Turbo C++).


|----------------------------------------------------------------------------|
|Tom Hite					|  The views expressed by me |
|Manager, Product development			|  are mine, not necessarily |
|CADSI (Computer Aided Design Software Inc.	|  the views of CADSI.       |
|----------------------------------------------------------------------------|

glenm@bcars318.UUCP (Glen Martin) (03/20/91)

In article <1991Mar19.161251.2899@ccad.uiowa.edu>, cadsi@ccad.uiowa.edu (CADSI) writes:
>From article <104499@unix.cis.pitt.edu>, by bill@hpb.cis.pitt.edu (Bill Broadly):
>> 
>> 	I need a small C program that allows running more that
>> one thread, using setjmp, and longjmp, on a ms-dos machine.  Nothing 
>> pre-emptive needed.  
>> 	Exactly what I wanted was in the Jan issue of C users Journal,
>> but I couldn't get it to work, and the author is in England (no Email
>> address).
>> 	Anybody out there have such a beast?  Or get the one from the
>> magazine to work?  
>
>Get the Book "Born to Code in C".  I just can't remember the author
>right now (Schiller or something like that).  It has a threaded 
>multi-tasker in it that works (for Turbo C++).

That would be Herbert Schildt, if I'm not as mistaken as usual 8-).
-- 
-------------------------------------------------------------------------------
Glen Martin  |Bitnet:  glenm@bnr.ca                   |  Phone: (613) 763-7299
BNR Ltd.     |  UUCP:  ..uunet!bnrgate!bcars318!glenm |  FAX:   (613) 763-2626
           BNR may own my fingers, but my opinions are all mine.
-------------------------------------------------------------------------------