Test 2 Part 1 Flashcards
Size of the cache in blocks?
Bytes / Bytes per block
How many writes occur?
Every time it gives a variable a value it is writing to it, so multiply the for loops
Capacity Miss?
Capacity misses occur when the amount of data referenced by a program exceeds the capacity of the cache
Cold Miss
This happens when an object is given a value
Synchronous Events are Caused by?
instruction currently being executed
Asynchronous events are caused by
Something outside of the program
Trap
Is intentional and requested by running program
Fault
Is unintentional and recoverable
Abort
Unintentional and unrecoverable
Fork outputs must include
Both the parent and child processes
What does wait(NULL) do?
Waits for child process to terminate
What does flush() do?
Flushs input after it is printed
Size of points array
(64*64)/bytes per block
hardware multiprocessing
System Timer: At regular intervals, the system timer goes off which causes control to be transferred to the OS scheduler.
Software multiprocessing
Schedular: Chooses a process to run from a set of ready to run processes.
SIGCHLD
The SIGCHLD signal is sent to a process when a child processterminates, is interrupted, or resumes after being interrupted.