Table lists typical elements found in a process control block for an unthreaded OS. Of these, which
Question:
Table lists typical elements found in a process control block for an unthreaded OS. Of these, which should belong to a thread control block and which should belong to a process control block for a multithreaded system?
Transcribed Image Text:
Process Identification Identifiers Numeric identifiers that may be stored with the process control block include . Identifier of this process. Identifier of the process that created this process (parent process) . User identifier Processor State Information User-Visible Registers A user-visible register is one that may be referenced by means of the machine language that the processor executes while in user mode. Typically, there are from 8 to 32 of these registers, although some RISC implementations have over 100 Control and Status Registers These are a variety of processor registers that are employed to control the operation of the processor. These nclude . Program counter: Contains the address of the next instruction to be fetched. e Condition codes: Result of the most recent arithmetic or logical operation (e.g., sign, zero, carry, equal, overflow) e Status information: Includes interrupt enabled/disabled flags, execution mode Stack Pointers Each process has one or more last-in-first-out (LIFO) system stacks associated with it. A stack is used to store parameters and calling addresses for procedure and system calls. The stack pointer points to the top of the stack Process Control Information Scheduling and State Information This is information that is needed by the operating system to perform its scheduling function. Typical items of information: Process state: Defines the readiness of the process to be scheduled for execution (e.g., running, ready waiting, halted) . Priority: One or more fields may be used to describe the scheduling priority of the process. In some systems, several values are required (e.g., default, current, highest-allowable) e Scheduling-related information: This will depend on the scheduling algorithm used. Examples are the amount of time that the process has been waiting and the amount of time that the process executed the last time it was running . Event: Identity of event the process is awaiting before it can be resumed Data Structuring A process may be linked to other process in a queue, ring, or some other structure. For example, all processes in a waiting state for a particular priority level may be linked in a queue. A process may exhibit a parent-child (creator-created) relationship with another process. The process control block may contain pointers to other processes to support these structures Interprocess Communication Various flags, signals, and messages may be associated with communication between two independent processes. Some or all of this information may be maintained in the process control block. Process Privileges Processes are granted privileges in terms of the memory that may be accessed and the types of instructions that may be executed. In addition, privileges may apply to the use of system utilities and services Memory Management This section may include pointers to segment and/or page tables that describe the virtual memory assigned to this process Resource Ownership and Utilization Resources controlled by the process may be indicated, such as opened files. A history of utilization of the processor or other resources may also be included; this information may be needed by the scheduler
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Answer rating: 66% (9 reviews)
This will differ from system to system but in general resources are owne...View the full answer
Answered By
Muhammad Umair
I have done job as Embedded System Engineer for just four months but after it i have decided to open my own lab and to work on projects that i can launch my own product in market. I work on different softwares like Proteus, Mikroc to program Embedded Systems. My basic work is on Embedded Systems. I have skills in Autocad, Proteus, C++, C programming and i love to share these skills to other to enhance my knowledge too.
3.50+
1+ Reviews
10+ Question Solved
Related Book For
Operating Systems Internals and Design Principles
ISBN: 978-0133805918
8th edition
Authors: William Stallings
Question Posted:
Students also viewed these Computer Sciences questions
-
What are the major items found in a process control block?
-
How does feedforward differ from feedback in a process control system?
-
Table 3.5 lists typical elements found in a process control block for an unthreaded OS. Of these, which should belong to a thread control block and which should belong to a process control block for...
-
Give the three ways to eliminate the balance in the overhead account at the end of the year.
-
Discuss the advantages of XML.
-
The input stream to a 4B/5B block encoder is 0100 0000 0000 0000 0000 0001 Answer the following questions: a. What is the output stream? b. What is the length of the longest consecutive sequence of...
-
Two new product designs are to be compared on the basis of revenue potential. Marketing believes that the revenue from design A can be predicted quite accurately to be \(\$ 3\) million. The revenue...
-
Suppose SSC has decided to distribute $50 million, which it presently is holding in very liquid short-term investments. SSCs value of operations is estimated to be about $1,937.5 million. SSC has...
-
1. Let R5x5 be s.p.d.. The non-zero entries of A are ## 0 0 0 0 0 0 0 0 0 # 0 0 (a) (2p) Draw the graph of A. (b) (2p) Give the non-zero structure of the Cholesky factor of A. (c) (2p) Explain what...
-
In the graph on the right, the demand for syrup has changed because the price of frozen waffles has risen from $2.50 to $3.50 per package. The cross-price elasticity of demand between frozen waffles...
-
In a number of early computers, an interrupt caused the register values to be stored in fixed locations associated with the given interrupt signal. Under what circumstances is this practical...
-
List three advantages of ULTs over KLTs.
-
True or False. If u and v are parallel vectors, then u x v = 0.
-
Search the Internet for an example of a new sports product that could be classified as a fad. Describe the product and why you think the product is a fad.
-
Does the neuroeconomic evidence show that behavioural bias is irrational? Explain your answer.
-
Outline the simplified model of the consumersupplier relationship in the sports industry.
-
Europe has eight different companies selling devices similar to the EpiPen. If these devices were available in the U.S. market, what would happen to the price elasticity of demand for the EpiPen?
-
Many economists are critical of neuroeconomics specifically and behavioural experimental economics more widely. Do you agree? Explain your answer
-
Capital employed represents the funds provided by: (a). Creditors (b). Debenture holders (c). Shareholders (d). All of these
-
Revol Industries manufactures plastic bottles for the food industry. On average, Revol pays $76 per ton for its plastics. Revol's waste-disposal company has increased its waste-disposal charge to $57...
-
What is middleware? Discuss.
-
The Java programming language is referred to by some as the language of the Web, due to its platform independent nature. Java uses a hybrid form of RPC and CORBA called RMI (Remote Method...
-
A relatively new term that has been introduced to the Web environment is Web service. What is a Web service and how does it differ from the concept of a Web application?
-
What are the intricate molecular mechanisms underlying adaptive immunity, particularly focusing on the processes of clonal selection, antigen recognition by T and B lymphocytes, and the generation of...
-
discuss the concept of immune privilege in tissues such as the central nervous system, reproductive organs, and the eye, elucidating the mechanisms that maintain tissue-specific immunological...
-
discuss the intricacies of immune tolerance mechanisms, including central and peripheral tolerance induction, and their roles in preventing autoimmune reactions while preserving immune responsiveness...
Study smarter with the SolutionInn App