Question

In: Computer Science

1. a. Explain why modern Operating Systems don’t allow the user to access the hardware directly....

1.

a. Explain why modern Operating Systems don’t allow the user to access the hardware directly.

b. System calls pass parameters to the kernel using one of three methods: in registers, in a block or table and the address of the block passed as parameter in a register, on the stack. Discuss the advantages and disadvantages of each.

Solutions

Expert Solution

1: Modern OS don't allow the user to acess the hardware directly because the OS must have to hide the computer's hardware, and it has to manage the hardware resources,it needs to prevent the application software from accessing the hardware directly .Without this protection the os would not be able to its job.

The CPU provides two modes of operation which enforce this protection. The software package runs in kernel mode, also called supervisor mode or privileged mode. In kernel mode, the software has complete access to all of the computer hardware, and control the switching between the CPU modes. Interrupts are received within the kernel mode software.
The rest of software runs in the user mode. during this mode, the direct access to hardware is prohibited, and then it's not possible to  switch to kernel mode. Any attempts to violate these restrictions are reported to the kernel mode software: in other words, to the software system itself. Programs running in user mode are given an address space, visible only to themselves, which contains enough memory for them to try to to their job.
By having two modes of operation which are enforced by the computer's own hardware, the software package can force application programs to use the operating system's abstract services, rather than circumventing any resource allocations by direct hardware access.

2:


Related Solutions

1. What is true of socialist economies?                  a.   They don’t allow elections as they...
1. What is true of socialist economies?                  a.   They don’t allow elections as they reject democracy, they are run by a central workers party.                 b.    They tend to be poor, and found in the 3rd world                 c.    state owns and manages basic industries though people can hold jobs, and salaries and have                         private property                 d.   There are none left in the world today except for Cuba 2. Which of the following was not...
Explain why an operating system can be viewed as a resource allocator. Direct memory access is...
Explain why an operating system can be viewed as a resource allocator. Direct memory access is used for high-speed I/O devices in order to avoid increasing the CPU’s execution load. a) How does the CPU interface with the device to coordinate the transfer? b) How does the CPU know when the memory operations are complete? c) The CPU is allowed to execute other programs while the DMA controller is transferring data. Does this process interfere with the execution of the...
In regards to modern operating systems If you are asked to design a hotel check-in system...
In regards to modern operating systems If you are asked to design a hotel check-in system that has three steps, what would you like to propose? If you are asked to detail your previous design so that it has five steps, how would you update it and why? If you are asked to propose a hotel check-in system without any limitation in steps, what would it be and why?
In regards to Modern Operating Systems provide the definitions of the following terms: Timesharing system and...
In regards to Modern Operating Systems provide the definitions of the following terms: Timesharing system and Multiprogramming system
Explain why modern businesses tend to have higher levels of operating gearing than they did in...
Explain why modern businesses tend to have higher levels of operating gearing than they did in the past. thanks for any help:)
1. Allow the user to vote as many times as they indicated there are voters (see...
1. Allow the user to vote as many times as they indicated there are voters (see numVoters). For each voter, you have to display the list ofcandidates and their associated id number (id numbers should start at 1, not 0). A voter votes for a candidate by entering the candidate's id number. 2. You have to devise a method for keeping tracks of the votes. 3. After all the voters have voted, you have to print out the results for...
create a program that will allow the user to enter a start value from 1 to...
create a program that will allow the user to enter a start value from 1 to 5, a stop value from 10 to 12 and a multiplier from 1 to 4. the program must display a multiplication table from the values entered. for example if the user enters: start 2, stop 10 and multiplier 3, the table should appear as follows: 3*2=6 3*3=9 3*4=12 . . . 3*10=30
Part 1: Design a Cipher allow user to use a “key” to encrypt and decrypt the...
Part 1: Design a Cipher allow user to use a “key” to encrypt and decrypt the message. Use at least two ciphers combined to design your own cipher Specify the min. and max. length of the message user can enter to encrypt Specify the length of the “key” user can enter to encrypt and decrypt the message Part 2: Programme the cipher and make it available to validate. Cleartext for the original programming scripts has to submitted. A frontend webpage...
Operating systems Explain what the critical section problem is. Please explain this in about 1-2 paragraphs.
Operating systems Explain what the critical section problem is. Please explain this in about 1-2 paragraphs.
1.) Why do we have to install different Device Drivers for different Operating Systems for a...
1.) Why do we have to install different Device Drivers for different Operating Systems for a particular I/O device? 2.) A process can share all or part of its PCB data with other processes. List and explain two methods can be used to accomplish this task. 3.) List the memory units inside and outside of the CPU, along with short descriptions of their purposes.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT