100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

COP4600 Midterm Review Questions With 100% Correct Answers.

Rating
-
Sold
-
Pages
8
Grade
A+
Uploaded on
21-12-2023
Written in
2023/2024

______ is a part of a process that has ______ - Thread; It's own execution history( can't have without a stack) Program Counter Stack Every process has ______ threads and every thread ____ - one or more threads; belongs to exactly one process Elements that are unique to a process but not a thread - text(instructions) data (constants/statics) heap( dynamic allocations) Reason to use multiple threads instead of process - Can reduce overhead and facilitate sharing **Threading: Classical Model; Explain Uniprogrammed, Multiprocess Model, and Threaded Model - Uni: One process at at time, wait for a process to finish; Multiprocess:Process switch in and out. Threaded switch between threads within a process. ( this reduces context switch times) Why do we use threads --break up complicated tasks into simple ones -improve efficiency compared to new processes, threads have - -lower memory cost(shared segments) -information sharing ( through shared data)-reduced creation, destruction time (allocation, copying) -reduce context time ( to another thread in the same process only) What's in a thread? (Give Process Specific versus Thread Specific Components) - Specific to A Thread: Program Counter Registers Stack State Specific to A Process: Address Space Global Variables Open file Child processes Pending alarms signals and handlers CPU accounting Describe the differences between kernel and user space threads - User threads: -User Library -OS-Independent -Syscalls block all process threads -Process threads in 1 CPU -Procedure calls (quick/cheap) Kernel threads: -System Library-OS-Specific -Syscalls block calling thread -Process threads in multiple CPUS -System calls (long/expensive) Thread Scheduling: Kernel versus User - Know that you cannot switch between threads from different processes. So the threads from process B or A then the other in user threads but kernel threads can go back and forth between theses two. Also you can use multiple CPUs for kernel threads so you can A1 in one core. A2 in another core (if they aren't dependent on each other) User threads have to run sequentially. Hybrid Threading - we can mix user and kernel threads to try to get the best of both. (This is complex) (Review Slide 9 of OS-02C)

Show more Read less
Institution
COP4600
Course
COP4600









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
COP4600
Course
COP4600

Document information

Uploaded on
December 21, 2023
Number of pages
8
Written in
2023/2024
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Brainarium Delaware State University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1826
Member since
2 year
Number of followers
1043
Documents
22338
Last sold
8 hours ago

3.8

317 reviews

5
147
4
60
3
54
2
16
1
40

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions