A ‘stack’ is a small area of reserved memory used to store the data in the CPU’s registers when: (1) system calls are made by a process to operating system routines; (2) when hardware interrupts generated by input/output (I/O) transactions on peripheral devices; (3) when a process initiates an I/O transfer; (3) when a process rescheduling event occurs on foot of a hardware timer interrupt. This transfer of register contents is called a ‘context switch’. The stack pointer is the register which holds the address of the most recent ‘stack’ entry. Hence, when a system call is made by a process (to say print a document) and its context is stored on the stack, the called system routine uses the stack pointer to reload the register contents when it is finished printing. Thus the process can continue where it left off.
Latest posts by BMS Team (see all)
- Meterdown Annual Festival is back with its 7th edition – Starts today! - January 16, 2020
- Tybms sem 6 results 2019 declared on 19th June 2019 - June 19, 2019
- TYBMS Sem 6 Results 2019 Update from BMS khabri! - June 15, 2019