On Mon, 2 Jun 1997 01:15:17 +0000 John Payson <MCS.COM> writes: supercat
I did this years ago in Turbo Pascal (though the task switch code
was written in assembly). Worked out quite nicely. I called my
procedure NextTask, and it did a stack switch. Besides holding return
addresses, the stack also held local variables for the task. I generally
called NextTask while in a loop waiting for I/O. I also called NextTask
in computation intensive tasks that just took a long time. I'd just
throw a NextTask in there now and then so it wouldn't hog the system. I
think we had five or six tasks running.
More... (looser matching)
- Last day of these posts
- In 1997
, 1998 only
- New search...