ReadKey like Function in C

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Aug 16 14:40:54 AEST 1989


In article <5692 at ficc.uu.net> peter at ficc.uu.net (Peter da Silva) writes:
>Fork() is just plain inefficient unless you have virtual memory support,
>so few small-system or real-time operating systems use it or even support it.

Funny how we didn't think it was a big problem on PDP-11 UNIX.  The
"small systems" you mention today have more inherent power than those
PDP-11s; the problem seems to be that convenient means of exploiting
the power are not being provided.

Real-time has nothing to do with it.

>> >While I'm here, what's the sentiment among C standards folks for some sort
>> >of standard co-routine arrangement?
>> It cannot be mandated across all implementations.
>Well, the flip response to this is: "Maybe, but then neither can fork().",
>and I'm reasonably sure you'll use that in your code.

Only if the application is deliberately constrained to POSIX implementations.
I don't use fork() gratuitously.

>It seems to me that there is a need for something between X3J11 and POSIX.

Feel free.



More information about the Comp.std.c mailing list