Question: Some processors have two sets of registers, one for integer operations and one for floating point (fp) operations. The registers used in integer operations are

Some processors have two sets of registers, one for integer operations and one for floating point (fp) operations. The registers used in integer operations are always saved and restored during every context switch whether it is preemptive multithreading or non-preemptive multithreading(since they are also used for calculations for instructions, such as memory address calculation, branch target calculation etc.) However, for most machines it is not very clear what will happen to the floating point registers.

As a programmer, for which architectures do you need to save and restore floating point registers? state your reasons.

a) Machine uses non-preemptive multithreading and only allows only a single thread that can use the floating point registers. There is a separate stack for integer and floating point operations.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!