<< Chapter < Page | Chapter >> Page > |
2(32-8) = 16,777,216 bytes = 16 MB
Instruction and data transfers would take three bus cycles each - one for the address and two for the data.
Instruction and data transfers would take four bus cycles each - two for the address and two for the data.
24 bits for the PC (24-bit addresses), 32 bits for the IR (32-bit addresses)
If a processor is held up in attempting to read or write memory, usually no damage occurs except a slight loss of time. However, aDMA transfer may be to or from a device that is receiving or sending data in a stream (e.g., disk or network), and cannot be stopped. Thus, if the DMA moduleis held up (denied continuing access to main memory), data will be lost.
A batch system needs memory protection so that programs can't modify the monitor.
A multiprogrammed batch system needs memory management so that multiple jobs can be kept in memory at the same time. Memorymanagement will determine which portion of memory each job can use. The system also needs a scheduling algorithm to determine which job can run at any giventime.
Both types of systems need interrupts so that the operating system can regain control of the CPU. A batch system needs this totime-out a long job and a multiprogrammed system needs this to share the processor among the active processes.
With a time sharing system, the primary concern is turnaround time. A round-robin scheduler would given every process a chance torun on the CPU for a short time, and reduce the average turnaround time. If the scheduler instead let one job run until completion, then the first job wouldhave a short turnaround time, but later ones would have to wait for a long time.
In a batch system, the primary concern is throughput. In this case, the time spent switching between jobs is wasted, so a moreefficient scheduling algorithm would be first-come, first-served, and let each job run on the processor as long as it wants.
This problem concerns one example of SRM activity. Real memory is divided into equal-sized blocks called frames, of which there maybe many thousands. Each frame can hold a block of virtual memory referred to as a page. SRM receives control approximately 20 times per second and inspects eachand every page frame. If the page has not been referenced or changed, a counter is incremented by 1. Over time, SRM averages these numbers to determine theaverage number of seconds that a page frame in the system goes untouched. What might be the purpose of this and what action might SRM take?
Notification Switch
Would you like to follow the 'Operating systems' conversation and receive update notifications?