In this first project, you’ll measure the costs of a
– system call
and the cost of a
– context switch
Code in C that implements the 2 objectives of this project:
system_call.c
– measures the time it takes to do a system call.
context_switch.c
– measures the time it takes to do a context switch.
A makefile for easy compilation
Hints
Measuring the cost of a system call is relatively easy. Forexample, you could repeatedly
call a simple system call (e.g., performing a 0byte read), andtime how long it takes;
dividing the time by the number of iterations gives you anestimate of the cost of a system call.
One thing you’ll have to
PayPal Gateway not configured
PayPal Gateway not configured