farm.html 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <html>
  2. <head>
  3. <title>farm</title>
  4. <body bgcolor=#ffffff>
  5. <h2 align=center>farm</h2>
  6. <h4 align=center>OS/161 Reference Manual</h4>
  7. <h3>Name</h3>
  8. farm - run some hogs and cats
  9. <h3>Synopsis</h3>
  10. /testbin/farm
  11. <h3>Description</h3>
  12. farm runs three copies of <A HREF=hog.html>hog</A> and one copy of
  13. <A HREF=../bin/cat.html>/bin/cat</A>.
  14. <p>
  15. The cat process reads and prints the file <strong>catfile</strong>,
  16. which you should create in advance.
  17. <h3>Requirements</h3>
  18. farm uses the following system calls:
  19. <ul>
  20. <li> <A HREF=../syscall/fork.html>fork</A>
  21. <li> <A HREF=../syscall/execv.html>execv</A>
  22. <li> <A HREF=../syscall/write.html>write</A>
  23. <li> <A HREF=../syscall/_exit.html>_exit</A>
  24. </ul>
  25. The cat subprocess spawned by farm uses these additional system calls:
  26. <ul>
  27. <li><A HREF=../syscall/open.html>open</A>
  28. <li><A HREF=../syscall/read.html>read</A>
  29. <li><A HREF=../syscall/close.html>close</A>
  30. </ul>
  31. farm is only likely to be useful for testing the scheduler.
  32. <h3>Bugs</h3>
  33. farm does not wait for its child processes to finish.
  34. </body>
  35. </html>