Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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. Below you are given 5 different processor architectures. As a programmer, for which architectures do you need to save and restore floating point registers? state your reasons. a) (5 pts) 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. b) (5 pts) Machine uses 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. c) (5 pts) Machine uses non-preemptive multithreading and allows multiple threads that can use floating point registers. There is a separate stack for integer and floating-point operations. d) (5 pts) Machine uses preemptive multithreading and allows multiple threads that can use floating point registers. There is a separate stack for integer and floating-point operations. e) (5 pts) Machine uses non-preemptive multithreading and you know that the kernel is designed so that it also supports saving of floating-point registers. However, there is a unified stack for integer and floating-point operations

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

Students also viewed these Databases questions

Question

Humanistic psychology.

Answered: 1 week ago

Question

What does the start( ) method defined by Thread do?

Answered: 1 week ago