Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Stevens Institute Of Technology CS 492 _ Complete Midterm Review.

Rating
-
Sold
-
Pages
9
Grade
A+
Uploaded on
23-03-2023
Written in
2022/2023

CS492 Complete Midterm Review Processes: ● Process - a program in execution ● A single CPU at any given time may only run one process ● CPU Utilization: 1 - p​n ● Processes don’t shar e memory address space Syscalls: Calling a kernel mode service from user mod program ● switches execution to kernel mode ● Programming interface to services provided by the OS ● Typically written in a high-level language ● APIs: ○ Win32 API (Windows) ○ POSIX API (POSIX-based systems: UNIX, Linux, MacOS) ● Types of syscalls: ○ Process control ○ File management ○ Device management ○ Information maintenance ○ Communications ● Return codes ○ s is -1 if error has occurred ○ fd is a file descriptor ○ n is a byte count ○ position is an offset within the file ● OS-to-Process Communication: a way for the OS to inform the process about something ○ “Asks” process to take an action based on the information Threads: ● Inter-Process Communications: Two main functions of an OS: ● Resource management ● User-friendliness for interaction with the hardware Scheduling: ● Scheduling decisions may take place when a process/thread ○ Is created ○ In running state exits ○ Blocks on IO, or an event ● Scheduling decisions may take place when an interrupt occurs○ Clock interrupt ■ Switch from running to ready ○ IO interrupt, or (unblocking) syscall ■ Switch from blocked to ready ● Scheduling takes place at clock interrupts ● A way for a system to keep track of time ○ Interrupt at periodic intervals ○ Implemented using a hardware clock interrupt ○ High priority ● Non-preemptive scheduling ○ Voluntary process switch(yield) ○ Process switch on blocking calls ○ The scheduler gets involved only at exit or on request ● Preemptive scheduling ○ Involuntary process switch ○ For every clock interrupt, running process may be suspended and switched with another process(if there is any) ● Different environments different scheduling algorithms are needed ● Different application areas have different goals ● Environments ○ Batch Systems ○ Interactive Systems ○ Real-time Systems ● Scheduling Algorithms Goals ○ All Systems ■ Fairness: giving each process a fair share of the CPU ■ Policy enforcement: seeing that stated policy is carried out ■ Balance: keeping all parts of the system busy ○ Batch Systems ■ Throughput: maximize jobs per hour ■ Turnaround time: minimize time between submission and termination

Show more Read less
Institution
CS 492
Course
CS 492









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

Written for

Institution
CS 492
Course
CS 492

Document information

Uploaded on
March 23, 2023
Number of pages
9
Written in
2022/2023
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$10.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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.
AllAcademic Other
View profile
Follow You need to be logged in order to follow users or courses
Sold
67
Member since
6 year
Number of followers
39
Documents
548
Last sold
1 month ago
All the academic resources you need.

All the academic resources you need.

3.7

7 reviews

5
3
4
1
3
2
2
0
1
1

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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions