263 Lecture Note@OS5
263 Lecture Note@OS5
o Single user cannot keep CPU and I/O devices busy at all times
o Multiprogramming organizes jobs (code and data) so CPU always has one
to execute
o A subset of total jobs in system is kept in memory
o When it has to wait (for I/O for example), OS switches to another job
o If processes don’t fit in memory, swapping moves them in and out to run
Other process problems include infinite loop, processes modifying each other or
the operating system