12,035 views
41 votes
41 votes

Which of the following need not necessarily be saved on a context switch between processes?

  1. General purpose registers
  2. Translation look-aside buffer
  3. Program counter
  4. All of the above

6 Answers

0 votes
0 votes
→ Actually TLB (or) Cache memory is to ensure correct program resumption.
→ With TLB (or) Cache memory we can get better performance but not mandatory.
→ Program counter, stack, I/O status information and registers must be saved on a context switch between processes.
0 votes
0 votes

Answer: (B)

TLB data is not necessary to save in memory. Let TLB load automatically on TLB misses. Because it take almost same time as we manually save TLB data on context switch and again load TLB data when execution resumes

Answer:

Related questions

23 votes
23 votes
1 answer
1
Kathleen asked Oct 9, 2014
5,729 views
A critical section is a program segmentwhich should run in a certain amount of timewhich avoids deadlockswhere shared resources are accessedwhich must be enclosed by a pa...
29 votes
29 votes
2 answers
2
Kathleen asked Sep 14, 2014
15,091 views
The value of $j$ at the end of the execution of the following C program:int incr (int i) { static int count = 0; count = count + i; return (count); } main () { int i, j; ...
35 votes
35 votes
5 answers
3
34 votes
34 votes
3 answers
4
Kathleen asked Sep 29, 2014
11,113 views
Dirty bit for a page in a page tablehelps avoid unnecessary writes on a paging devicehelps maintain LRU informationallows only read on a pageNone of the above