1/8
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No study sessions yet.
What is a thread?
Basic unit of CPU utilization
Difference between thread and process?
Process is used for grouping resources together. Thread is part of process that runs on CPU.
Advantage of using threads over processes?
Creating a new thread is much less overhead than creating a new process.
Benefits of multithreading?
Much more responsive, can execute in parallel
Which multithreading models provide true parallelism?
One-to-one and Many-to-Many
how are threads affected by fork() and exec()?
fork() → one thread survives (the caller)
exec() → no threads survive
what is a semophore?
A construct to allow only one thread or process at a time. ie mutex
what is starvation?
A process is never removed from the semaphore which it waits