Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Create a file
- 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.
- Evidence: show that it makes files of length 0, 1, and many (40129).
- Write a picture file
- 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.
- Do not use any other file.
- Evidence is a picture file, either ppm or gif.
- Producer and consumer
- Fork two processes which share a common 4KB area of memory. One process should produce 10 million bytes, the other should consume them.
- Evidence: show that every possible byte is transmitted, and that the same bytes are transmitted and received.
- Producer and consumer
- The two processes should create and remove 10,000 random length strings of random alphabetic characters.
- Evidence: show that the same strings are transmitted and received. You may use an auxiliary file for this.
- Preserve pointers in a file
- 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
- 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