COP 4600 Midterm Review Questions And 100%
Correct Answers
______ is a part of a process that has ______ - ANSWER Thread;
Its own execution history( can't have without a stack)
Program Counter
Stack
Every process has ______ threads and every thread ____ - ANSWER one or more threads;
belongs to exactly one process
Elements that are unique to a process but not a thread - ANSWER text(instructions)
data (constants/statics)
heap( dynamic allocations)
SC reason for using many threads instead of processes - ANSWER Save overhead and
sharing might be easier
**Threading: Classical Model; Describe Uniprogrammed, Multiprocess Model and
Threaded Model - ANSWER Uni: One process at a time - wait for process to finish;
Multiprocess: Switch between processes.
Threaded switch between threads within process. (this reduces context switch times)
Why use threads - ANSWER - split complicated jobs into simpler ones
, -increase productivity
compared to new processes, threads have - ANSWER -less memory overhead(sharing of
segments)
-sharing of information-through shared data
-less overhead in creating,
destroying time - allocation copying
-reduce context switching time - to another thread in the same process only
what is in a thread? (give Process Specific versus Thread Specific Components) -
ANSWER Specific to A Thread:
Program Counter
Registers
Stack
State
Particular to A Process:
Address Space
Global Variables
Open file
Child processes
Pending alarms
signals and handlers
CPU accounting
Describe the key differences between kernel and user space threads - ANSWER User
threads:
-User Library
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller Easton. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $12.99. You're not tied to anything after your purchase.