Guest User

Untitled

a guest
Apr 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. Create a file
  2. Write void makefile(const char * filename, int length); which writes a file of the specified length. The contents of the file should all be 0.
  3.  
  4. Evidence: show that it makes files of length 0, 1, and many (40129).
  5.  
  6.  
  7. Write a picture file
  8. Write a picture file to memory, have the memory write itself back to a file at the end, then show that the file can be read with eog.
  9. Do not use any other file.
  10.  
  11. Evidence is a picture file, either ppm or gif.
  12.  
  13.  
  14. Producer and consumer
  15. Fork two processes which share a common 4KB area of memory. One process should produce 10 million bytes, the other should consume them.
  16.  
  17. Evidence: show that every possible byte is transmitted, and that the same bytes are transmitted and received.
  18.  
  19.  
  20. Producer and consumer
  21. The two processes should create and remove 10,000 random length strings of random alphabetic characters.
  22.  
  23. Evidence: show that the same strings are transmitted and received. You may use an auxiliary file for this.
  24.  
  25.  
  26. Preserve pointers in a file
  27. Create an area of memory mapped to a file. In this area write a list of strings using the most complex arrangement in the lecture on lists in C
  28.  
  29. Save the file, exit the process, then show that the lists are readable when reloaded from the file.
Add Comment
Please, Sign In to add comment