Computer Science  >  Final Exam Review  >  Stevens Institute Of Technology CS 492 _ Complete Midterm Review. (All)

Stevens Institute Of Technology CS 492 _ Complete Midterm Review.

Document Content and Description Below

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]

Last updated: 2 years ago

Preview 1 out of 9 pages

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)
Preview image of Stevens Institute Of Technology  CS 492 _ Complete Midterm Review. document

Buy this document to get the full access instantly

Instant Download Access after purchase

Buy Now

Instant download

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Reviews( 0 )

$6.00

Buy Now

We Accept:

Payment methods accepted on Scholarfriends (We Accept)

Instant download

Can't find what you want? Try our AI powered Search

240
0

Document information


Connected school, study & course


About the document


Uploaded On

Mar 23, 2023

Number of pages

9

Written in

All

Seller


Profile illustration for CourseWorks,Inc
CourseWorks,Inc

Member since 3 years

9 Documents Sold

Reviews Received
2
0
0
0
0
Additional information

This document has been written for:

Uploaded

Mar 23, 2023

Downloads

 0

Views

 240

Document Keyword Tags

More From CourseWorks,Inc

View all CourseWorks,Inc's documents »

$6.00
What is Scholarfriends

Scholarfriends.com Online Platform by Browsegrades Inc. 651N South Broad St, Middletown DE. United States.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Scholarfriends · High quality services·