dual processor
Mike Meyer
mwm at mired.org
Tue Sep 6 21:28:21 EDT 2005
Jorgen Grahn <jgrahn-nntq at algonet.se> writes:
> But it's interesting that the Unix pipeline Just Works (TM) with so little
> effort.
Yes it is. That's a result of two things:
1) The people who invented pipes were *very* smart (but not smart
enough to invent stderr at the same time :-).
2) Pipes use a dead simple concurrency model. It isn't even as
powerful as CSP. No shared memory. No synchronization primitives. Data
flows in one direction, and one direction only.
Basically, each element of a pipe can be programmed ignoring
concurrency. It doesn't get much simpler than that.
<mike
--
Mike Meyer <mwm at mired.org> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
More information about the Python-list
mailing list