Trusted by millions of Kenyans
Study resources on Kenyaplex

Get ready-made curriculum aligned revision materials

Exam papers, notes, holiday assignments and topical questions – all aligned to the Kenyan curriculum.

Context switching between two threads of execution within the operating system is usually performed by a small assembly language function. In general terms, what does this small...

Context switching between two threads of execution within the operating system is
usually performed by a small assembly language function. In general terms, what does this
small function do internally?

Answers


Faith
Saves the current registers on the stack, then stores the stack pointer in the current thread’s control
block. We then load the stack pointer for the new thread’s control block and restore the registers it had
saved, from its stack.
Titany answered the question on April 26, 2022 at 05:17

Answer Attachments

Exams With Marking Schemes

Related Questions