This repository contains sample test cases for the programming assignment.
Do "make" to build executables.
"make clean" to remove them.
There are three executables.
fork: This measures the throughput of the fork-based method discussed in the assignment.
context: This measures the throughput of your my_precious system call. Use it when your implementation is ready.
compare: This can be used to compare fork-based method to your implementation. Use this for your final performance measurement when your implementation is ready.
All executables accept three parameters:
t: Timeout (in seconds, default 10).
n: Number of elements in the buffer as power of 2 (default 1<<10). Use it to configure program size.
s: syscall number for my_precious (default 335). This depends on your kernel version. Irrelevant for fork.