Test 2 Part 1 Flashcards
(42 cards)
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.
What process reaps the parent process
the shell
what process reaps the child process
init process
What process reaps the grandchild
process the child process
What process executes the handler
The process that receives the SIGCHLD process
Where is a.out executed?
foreground, & makes it run in the background
What are the two primary system functions that the shell causes when a.out is ran, and what do they do
Fork: Creates child process
Exec: Called by child to run a different program
What prevents the shell from redisplaying the shell prompt right away rather than after a few seconds when the program completes?
the shell has a loop to wait for the child process to terminate
how is a builtin cmd handled differently by the shell
it doesn’t run either fork or exec