🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #9940

Lattice's fork function

#9940
From: Davis
Date: Sun, 02 Oct 1988 22:34
28 lines
1338 bytes

I thought I would try writing a simple multitasting program,
however it doesn't work.

The program is "time", it times the execution of a program. It works
similar to the UNIX(r) time command. That is you enter "time command"
and the program forks the "command" portion, taking the time before
the fork and after the fork. I am using Lattice 4.01's version of fork
and version 34.1 of ARP. Time without a parameter will return a usage
statement.

"time time" works fine as does "time microemacs" (from the 1.2 extras),
however, "time dir" prints the contents of the directory and then gurus,
"time cd" crashes before printing, and "time echo hello" won't even fork
the process.

I know I could try the "system" call, but I would like to know if I
am misunderstanding something. (I suspect that fork doesn't do as much
housekeeping as I had hoped.)

Thanks

-- 
________________________________________
					|	Mike Davis
					|	..!att!ihlpm!jmdavis
				 	|_________________________
Technical Details
Message-ID: <2386@ihlpm.ATT.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!ihlpm!jmdavis

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!clyde!att!ihlpm!jmdavis
From: jmdavis@ihlpm.ATT.COM (Davis)
Newsgroups: comp.sys.amiga.tech
Subject: Lattice's fork function
Keywords: fork, task, help!
Message-ID: <2386@ihlpm.ATT.COM>
Date: 2 Oct 88 22:34:21 GMT
Organization: AT&T Bell Laboratories - Naperville, Illinois
Lines: 28