Skip to content

Instantly share code, notes, and snippets.

@mbmccormick
Created February 28, 2012 18:32
Show Gist options
  • Select an option

  • Save mbmccormick/1934178 to your computer and use it in GitHub Desktop.

Select an option

Save mbmccormick/1934178 to your computer and use it in GitHub Desktop.
/cs354/lab03/notes

Hints

Similar to proctab, there should be something like pipetab which is seen system-wide. Most of the data manipulation will be using this pipetab only.

The pipid32 type is a typedef of int.

Test Cases

Consider during an on-going pipe operation, if the pipe owner calls pipdisconnect or pipdelete, then do the following:

  1. Free pipe internal buffer (if you are getting memory from heap).
  2. Delete associated semaphores.
  3. Reader or writer who was waiting on that semaphore will receive a SYSERR, so catch that and exit properly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment