Question

List the components of the process that are shared across all threads in a multithreaded process....

List the components of the process that are shared across all threads in a multithreaded process. Briefly explain why it is important that the other components of the process be unique to each thread.

• Program Text

• PID

• Program Counter

• CPU Registers

• Data Section

• Stack

• Heap

• Open Files

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Program Text :

The process that can be defined as the represetation of the activity of an entity and it representes the basic unit of the work that should we implimented in the system.

In order to put this in the format of the simple terms , we can write that in the format of program in a file and then we can execute the program .

This is all becomes a process and it performs all the tasks in a program .

PID or Process Identification :

It means the Process Identification .

It provides the unique identification to the system in order to identify the hardware type of item or the some of the types of the registers.

And it is always a non-negitive number.

Program Counter :

The program counter is a type fof register in a computer processors and it contains the address of the instruction that is been execute at the present time

If any one of the instruction that can be fetched then the program counter should incresed and store their value by 1.

It mainly contains the address of the current instruction in the specific tyoe of register.

CPU registers :

The CPU register is a type of register and that can holds the data in a small type of format .

The holding data can be placed on the computer processor in a system in order to work .

The registers can also hold the instruction types , and provides the storage address and some kind of the data .

Here we have the some instructions those can be specify the registers as a part of the instrction .

Data section :

The data section is a type of portion where we can place the diffrent types of data in order to prcocess and fetch the execution .

And we commonly dentoedint the format of the (.data).

It is the type of portion of the object file and that is corresponding to the virtual address space .

And that virtual address space that contains the static variables ,gloabal variables , local variables.

STACK :

It is the type of data structure and we can use this stack in ordr to store the collection of the objects.

And the individual operations like adding of an item and the storing of an item process with the help of the push operation .

In order the retreive those value we have the pop operation for the fetching of the process.

And this stack has the several types of application the the computer programming.

HEAP :

It is the special type of the tree data structure and that is in the type of tree format where the tree is a complete binary tree.

This Heaps can be of two types mainly the MIN_HEAP and the MAX_HEAP.

And these can be represented the key that can be preseneted in the root of the value of the node and that must be the grateset among the keys presented from all of its children nodes.

Add a comment
Know the answer?
Add Answer to:
List the components of the process that are shared across all threads in a multithreaded process....
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Debugging and testing multithreaded programs is made more difficult compared to dealing with single-threaded programs by...

    Debugging and testing multithreaded programs is made more difficult compared to dealing with single-threaded programs by: 1. the necessity to divide activities into separate and concurrent tasks 2. the existence of many more different execution paths made possible by parallel thread execution 3. multithreading library APIs with confusing semantics -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Consider the following code that creates N threads using the POSIX threading library. The thread function threadFun receives as parameter a thread index (from 0 to N-1). #define NTHREADS 4...

  • Description In this homework, you are asked to implement a multithreaded program that will allow ...

    Description In this homework, you are asked to implement a multithreaded program that will allow us to measure the performance (i.e, CPU utilization, Throughput, Turnaround time, and Waiting time in Ready Queue) of the four basic CPU scheduling algorithms (namely, FIFO, SJE PR, and RR). Your program will be emulating/simulating the processes whose priority, sequence of CPU burst time(ms) and I'O burst time(ms) will be given in an input file. Assume that all scheduling algorithms except RR will be non-preemptive,...

  • Assume that we desire to have deadlock-free mutual exclusion using locks on a shared object implemented...

    Assume that we desire to have deadlock-free mutual exclusion using locks on a shared object implemented via a set of shared registers. Suppose we allow threads to go through the lock method without writing to any of the shared registers? In general, it will be impossible to tell if a thread is in the critical section by examining the shared object. It will result in deadlocks. Both (a) and (b) Neither (a) nor (b) Suppose a thread attempts to lock...

  • Do the following project: Following is the file to be programmed in Linux kernel. Run this...

    Do the following project: Following is the file to be programmed in Linux kernel. Run this program. Include the screenshot of the results. Multi threaded Sorting Application Write a multithreaded sorting program that works as follows: A list of integers is divided into two smaller lists of equal size. Two separate threads (which we will term sorting threads) sort each sub list using a sorting algorithm of your choice. The two sub lists are then merged by a third thread—a...

  • Vocabulary Exercises is the communication channel that connects all computer system components Cache types that are...

    Vocabulary Exercises is the communication channel that connects all computer system components Cache types that are generally implemented on the same chip as the CPU include 3. thus controlling access to the bus by all other The CPU is always capable of being a(a) devices in the computer system. 4. An) is a reserved area of memory used to resolve differences in data transfer rate or data transfer unit size. 5. A(n) is an area of fast memory where data...

  • Answer all questions. Below are some basics details related to your submission. Microsoft word su...

    Answer all questions. Below are some basics details related to your submission. Microsoft word submission only, this files must contain all diagrams etc. related to the questions All responses must be in own words, even if references are provided do not simply quote information .All work must be professionally presented (e.g. typed equations using equations editor, CAD drawings) References must be provided (do not copy and paste any information including diagrams) Use appropriate communication that best conveys your suggestions and...

  • Study Questions 4 Directions: Complete all of the questions to the best of your ability. Unless...

    Study Questions 4 Directions: Complete all of the questions to the best of your ability. Unless otherwise specified, use complete sentences and provide thorough answers. All answers can be found in your Perspectives in Nutrition text book, text appendices, and BB resources. IMPORTANT: This chapter is chemistry-intensive. If you do not have a strong chemistry background, it is highly recommended that you do this week's optional reading FIRST! 1. Name the three monosaccharides and list one characteristic for each. 2....

  • do numbers 4-8 4. Given any directory, use the Is command to display: • all files...

    do numbers 4-8 4. Given any directory, use the Is command to display: • all files and sub-directories starting with the letter "D" (note do not list anything in any sub-directory) • its immediate sub-directories (sub-directories only, and no other ordinary files) its immediate hidden sub-directories only - take a screenshot (#3-3) that clearly shows the command and the result. 5. Assume that the following files are in the working directory: $ ls intro notesb ref2 section 1 section3 section4b...

  • . What is a programmable logic controller (PLC)?12. The , Identify four tasks in addition to...

    . What is a programmable logic controller (PLC)?12. The , Identify four tasks in addition to relay switching operations that PLCs are capable performing. 3. List six distinct advantages that PLCs offer over controller operates in real time. What does this mean? of performing 13. Answer the following with reference to the f conventional relay-based control systems. control PLC ladder logic diagram of Figure 1-21 this etary PLC architecture. 5. State two ways in which LVO is incorporated into 4,...

  • Please help ASAP! C ++, linked list, etc. everything for the project is in the link...

    Please help ASAP! C ++, linked list, etc. everything for the project is in the link below. https://www.zipshare.com/download/eyJhcmNoaXZlSWQiOiIzZDIyN2UzYi1kNGFhLTRlMzEtYjMzZi00MDhmYzNiMjk3ZGMiLCJlbWFpbCI6Im1pMTQzNEBnbWFpbC5jb20ifQ== You should turn it in by blackboard. Each task should be in a separate unzipped folder named YourLastName_YourFirstInitial_taskN, where N is the task number inside a zipped file named: YourLastName_YourFirstInitial.zip. You may use code you have written previously and you may ask other members of the class questions about the assignment. However, you must do your own assignment; you may not use...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT