home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / os / msdos / programm / 9192 < prev    next >
Encoding:
Text File  |  1992-09-09  |  1.6 KB  |  42 lines

  1. Newsgroups: comp.os.msdos.programmer
  2. Path: sparky!uunet!decwrl!csus.edu!netcom.com!resnicks
  3. From: resnicks@netcom.com (Steve Resnick)
  4. Subject: Re: Threads/Coroutines for DOS
  5. Message-ID: <2ssnhgm.resnicks@netcom.com>
  6. Date: Wed, 09 Sep 92 16:15:56 GMT
  7. Organization: What? Me organized? You should see my checkbook!
  8. References: <1992Sep8.050225.1013@iti.gov.sg> <715992030snx@cotswold.demon.co.uk>
  9. Lines: 31
  10.  
  11. In article <715992030snx@cotswold.demon.co.uk> nigel@cotswold.demon.co.uk (Nigel Roles) writes:
  12. >
  13. >In article <1992Sep8.050225.1013@iti.gov.sg> stan@iti.gov.sg (Tan See Mong) writes:
  14. >
  15. >> 
  16. >> I need a (p.d.) threads package for DOS for the project I'm working on.
  17. >> I checked out CTASK by Thomas Wagner -- it's a great piece of work
  18. >> but a little too heavyweight.  All that's required here is non-premeptive
  19. >> coroutines that will work with Borland 3.0 C/C++.  Is there anything like this
  20. >> around?
  21. >> 
  22. >> stan
  23. >> 
  24. >> 
  25. >BC++ 3.1 reference manual on longjmp states it is sufficient for implementing
  26. >coroutines.
  27.  
  28.  
  29. setjmp/longjmp do save the program state, however, if your co-routines use
  30. the stack, you will need to allocate a new stack. This is a little tricky.
  31.  
  32. I wrote a non-premptive task manager (mangler?) a while back. I will post
  33. it if there is sufficient interest. 
  34.  
  35. Steve
  36.  
  37. -- 
  38. ------------------------------------------------------------------------------
  39. Steve Resnick - resnicks@netcom.com steve@axebbs.kludge.com FidoNet: 1:143/105
  40. "Sometimes you're the windshield, sometimes you're the bug." - M. Knopfler
  41. -----------------------------------------------------------------------------
  42.