- Trending Categories
- Data Structure
- Operating System
- MS Excel
- C Programming
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are the basic elements of computers related to OS?
We know that an operating system is a resource allocator and it manages all the resources which are associated with the system.
Let us see how operating system design is related to basic elements of a computer system
Registers are available in the processor. These registers are used for storage and data transfer in the processor.
There are registers which perform the operation of storage of data. It is known as data register (DR) and the register which stores the address known as address register (AR) and program counter (PC) register which is used for storing the address of next instruction.
After the instructions are processed these instructions are stored in a register called an accumulator register which stores the results produced by the system.
A hardware element which holds the address element is used for adding the portion of an address to form an effective address.
Interrupts play the role of sending the signals to the CPU and asking to stop the current process execution and execute the operating system request.
Interrupts play a key role in the operating system because it provides the user with better control over the system. Without interrupts, the user has to wait for the resources.
There are three types of interrupts they are as follows −
Hardware interrupts are generated by the hardware devices as they want the attention of the operating system.
Software interrupts are generated when there is a system call to an operating system.
Traps are generated by the processor itself as it is having an internal error and it wants the operating system to address it.
The cache is used to access the data faster. It stores the frequently accessed data and processors access the data directly from the cache device to save time.
Input-output plays the role of sending the data to and from memory. Both the CPU and I/O can concurrently execute the data. Input-output with the help of direct memory access executes the data.
It is a mechanism used by the operating system to protect the data of a user. Protection in an operating system is provided by creating the user id and creating administrative ids and group id's which can be used for protection of an operating system.
Kickstart Your Career
Get certified by completing the courseGet Started