Question: There are two Operating System processes X and Y reside within a single computer, along with its operating system. The memory occupied by X and

There are two Operating System processes X and Y reside within a single computer, along with its operating system. The memory occupied by X and Y are each contiguous in the main memory. X resides in physical addresses 0x100000 through 0x103FFF. Y resides in physical addresses 0x200000 through 0x210FFF. The operating system resides in physical addresses 0x000000 through 0x0FFFFF. The Memory Management Unit uses Base and Limit registers.

a. If process X is in the RUNNING state and Process Y is in the READY state, what are the contents of the Base and Limit Registers. Explain how the Base and Limit registers are used to create a sandbox that constrain memory references.

b. If process X makes a read() system call that blocks, the operating system may run process Y. Explain in detail the sequence of actions taken by the operating system to make this switch. Include changes to the program counter, stack pointer, and other general-purpose registers, process control register, and process descriptor (or process control block).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!