Describe an example where multiple threads would improve the performance of a program.
Multithreaded programming provides a more efficient use of multiple cores and improved
execution of the threads over time. For example, in an appli
9/30 COSC460 In Class Notes
Starvation - Not every processor gets to do a process
Readers-Writers Problem - the writer and reader do their own
thing and have no communication between them
- X and Y can read the file without interference
- Problem: If X is
What is the purpose of system calls?
System calls provide a user program to request the operating system to perform tasks reserved for the operating system on the user
programs behalf. System calls provide the means for a user program to ask the operating
The services and functions provided by an operating system can be divided into two main
categories: 1) services and functions that are helpful to the user, and 2) services and functions
that are for the efficient operation of th