] cat fudeba.txt | head 20 | tail 10 | less
]
] What is the (best) approach? I think that making 4 fork()/exec()
] is an extreme waste of system resources. And I don't know how making the
Unix uses the fork()/exec() approach. You can see it if you do the following in one terminal:
cat | head -20 | tail -10 | less
and ask for a process tree (for example with pstree in linux) in another terminal:
bash-+-cat
|-head
|-less
`-tail
You can see that bash has four child processes.
If you think that spawning many processes for a pipe is a waste of resources on low-end systems like MSX you should use the temporary file approach, just like MSXDOS and MS-DOS do.
Kind regards,
Alex Wulms
--
Alex Wulms/XelaSoft - MSX of anders NIX - Linux 4 ever
See my homepage for info on the *** XSA *** format
http://www.inter.nl.net/users/A.P.Wulms
**** MSX Mailinglist. To unsubscribe, send an email to [EMAIL PROTECTED] and put in the body (not subject) "unsubscribe msx [EMAIL PROTECTED]" (without the quotes :-) Problems? contact [EMAIL PROTECTED] (www.stack.nl/~wiebe/mailinglist/) ****
- Piping Adriano Camargo Rodrigues da Cunha
- RE: Piping Frits Hilderink
- Re: Piping Alex Wulms
- Re: Piping Adriano Camargo Rodrigues da Cunha
- joywave Ricardo Bittencourt Vidigal Leitao
- Re: Piping shevek
- Re: Piping Adriano Camargo Rodrigues da Cunha
- Re: Piping David Heremans
- Re: Piping Alex Wulms
- fudebrowser 1.3 Ricardo Bittencourt Vidigal Leitao
- RE: Piping Boon, Eric
- RE: Piping shevek