Before Exam Flashcards
What does the heap store?
Dynamic memory
What does the stack store?
Next program instruction/local variables
What does the data segment store?
Static variables
What does the text/code segment store?
Program code/executable instructions
What is copy-on-write?
The program shares the memory until they wait to do changes, then the memory is copied before writing
What is lock contention?
When many threads try to access a shared resource at the same time, making some of the threads wait a long time before getting access
What is MCS and when are they great to use?
MCS is a way to organize threads waiting for a shared resource in a line, the threads will only check the status of the thread in front of them. Great when there are a lot of threads waiting for a shared resource
What is RCU and when is it great to use?
RCU is way that threads simultaneously will read from the same shared resource, when a thread want to modify the resource, it copies the memory and only writes to original memory when there are no threads reading from it. Great when there are many more readers than writers
Average response time
Average time a task waits before getting cpu time
Throughput
The rate at which tasks are completed