home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.msdos.programmer
- Path: sparky!uunet!decwrl!csus.edu!netcom.com!resnicks
- From: resnicks@netcom.com (Steve Resnick)
- Subject: Re: Threads/Coroutines for DOS
- Message-ID: <2ssnhgm.resnicks@netcom.com>
- Date: Wed, 09 Sep 92 16:15:56 GMT
- Organization: What? Me organized? You should see my checkbook!
- References: <1992Sep8.050225.1013@iti.gov.sg> <715992030snx@cotswold.demon.co.uk>
- Lines: 31
-
- In article <715992030snx@cotswold.demon.co.uk> nigel@cotswold.demon.co.uk (Nigel Roles) writes:
- >
- >In article <1992Sep8.050225.1013@iti.gov.sg> stan@iti.gov.sg (Tan See Mong) writes:
- >
- >>
- >> I need a (p.d.) threads package for DOS for the project I'm working on.
- >> I checked out CTASK by Thomas Wagner -- it's a great piece of work
- >> but a little too heavyweight. All that's required here is non-premeptive
- >> coroutines that will work with Borland 3.0 C/C++. Is there anything like this
- >> around?
- >>
- >> stan
- >>
- >>
- >BC++ 3.1 reference manual on longjmp states it is sufficient for implementing
- >coroutines.
-
-
- setjmp/longjmp do save the program state, however, if your co-routines use
- the stack, you will need to allocate a new stack. This is a little tricky.
-
- I wrote a non-premptive task manager (mangler?) a while back. I will post
- it if there is sufficient interest.
-
- Steve
-
- --
- ------------------------------------------------------------------------------
- Steve Resnick - resnicks@netcom.com steve@axebbs.kludge.com FidoNet: 1:143/105
- "Sometimes you're the windshield, sometimes you're the bug." - M. Knopfler
- -----------------------------------------------------------------------------
-