Question

Describe the differences between two running processes versus one process running a pair of threads. Your...

Describe the differences between two running processes versus one process running a pair of threads. Your response should include computational costs of creation, destruction and context switching. It should also include a discussion on address spaces and resource sharing

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

ANSWER:

GIVEN THAT:

To describe the differences between two running processes versus one process running a pair of threads.

i)Let us discuss about the differences between two running processes (multiprocessing) versus one process running a pair of threads (multithreading)

ii)The main difference between these two techniques is that,in multi-threading if any one of the thread goes wrong,then the entire process will goes down where as in multiprocessing the modules has different memory regions and even one process goes down others can execute.

iii)Also, in multiprocessing the message delivery is not guaranteed since the reviever may crashed before recieving the message but in multi-threading, we can assume that message delivery is guaranteed

iv)In multi-threading the entire memory is shared by whole threads so messages can be passed to other objects where as in multiprocessing we need to implement shared memory between processes.

v)Inorder to send and receive message in multi-threading objects can directly communicate ech other where as in multiprocessing techniques like socket,messge passing or shared memory has to be implemented.

vi)multi-threading allow us to use same adress space for all the threads executing where multiprocessing needs to specify adress for each process from the adress space.

So we can conclude that

vii)Comparing to multiprocessing, multithreading has the advantage of less overhead to create and terminate since only a small memory is needed to copied

viii)also multi threading enables the faster task switching since context switching is easier in threads since not the entire information about the process is to be stored for switching the process only the small thread stack is to be copied and replaced.

ix)Since threads share a common memory among all the threads the applications that are supposed to share large amout of data between objects can be easily implemented using multi-threading than multi-processing.but if any error occure in that memory space entire application will goes down.

Add a comment
Know the answer?
Add Answer to:
Describe the differences between two running processes versus one process running a pair of threads. Your...
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
  • Part 1: Please describe one example of information technology that you use for your role in...

    Part 1: Please describe one example of information technology that you use for your role in your organization. Your description should include the business functions that are supported by the technology, the technology infrastructure (platform) on which it operates, and the types of data that are captured or produced by the system. Next describe the benefits provided by the system. Does it automate manual processes, to reduce the labor costs required for the process? Does it support business decisions to...

  • (Must Post First) For your main Discussion post, describe at least two typical adjusting entries a...

    (Must Post First) For your main Discussion post, describe at least two typical adjusting entries a service-type business would need to record to bring account balances up-to-date. For your examples, one of the adjusting entries should be an accrual and another a deferral. You may use similar examples as those in your textbook and you may also research other typical adjusting entries for service-type companies. Be sure to address the following questions: • What are the purposes of each of...

  • Project is about "House of Kaviari," and the industry is Caviar Industry. I only want Part.6...

    Project is about "House of Kaviari," and the industry is Caviar Industry. I only want Part.6 "Identify Critical Issues and Priorities" BUSINESS STRATEGY ANALYSIS REQUIRES THE FOLLOWING: 1. Identify strategic goals. – A firm's strategic goals drive business strategy and address the key success factors of the industry. Strategic goals often include the vision or mission statement for the business. They should also set the direction and standard for financial and market results against which actual performance can be measured....

  • Project is about "House of Kaviari," and the industry is Caviar Industry. I only want Part.4...

    Project is about "House of Kaviari," and the industry is Caviar Industry. I only want Part.4 "Strategic Performance" BUSINESS STRATEGY ANALYSIS REQUIRES THE FOLLOWING: 1. Identify strategic goals. – A firm's strategic goals drive business strategy and address the key success factors of the industry. Strategic goals often include the vision or mission statement for the business. They should also set the direction and standard for financial and market results against which actual performance can be measured. The two most...

  • 1. List some of the various communities to which you belong (organizations, work, hobbies, fields of...

    1. List some of the various communities to which you belong (organizations, work, hobbies, fields of expertise, family). Give examples of some of the behavioral and language characteristics particular to each group? For instance, do you speak to your job supervisor in the same way you speak to your child or your best friend? Why might you interact with members of different communities differently?    2.What are some of your past experiences with writing? Please explain what you like and...

  • Apply the four-stage New Product Development model shown in page 325 of your text book (Concept...

    Apply the four-stage New Product Development model shown in page 325 of your text book (Concept generation, Project assessment and selection, Product development, and Product commercialization) to Philips new product development strategies or programs identified in this case study. NewConceptDevelopment atPhilipsPhilips has aproud historyof innovation and has been responsibleforlaunchingseveral ‘new tothe world’product categories, like X-raytubes inits earlydays, theCompact Cassette in the1960s followed bytheCompact Disc in the1980s, and morerecentlyAmbilight TV. These successesarelinked toPhilips’ deep understandingof innovation, enablednotablybysignificant R&D investments and strongtraditionsin...

  • Title: Partners Health Care Systems (PHS): Transforming Health Care Services Delivery through Information Management According to...

    Title: Partners Health Care Systems (PHS): Transforming Health Care Services Delivery through Information Management According to government sources, U.S. expenditures on health care in 2009 reached nearly $2.4 trillion dollars ($2.7 trillion by the end of 2010).[1] Despite this vaunting national level of expenditure on medical treatment, death rates due to preventable errors in the delivery of health services rose to approximately 98,000 deaths in 2009.[2] To address the dual challenges of cost control and quality improvement, some have argued...

  • Discussion questions 1. What is the link between internal marketing and service quality in the ai...

    Discussion questions 1. What is the link between internal marketing and service quality in the airline industry? 2. What internal marketing programmes could British Airways put into place to avoid further internal unrest? What potential is there to extend auch programmes to external partners? 3. What challenges may BA face in implementing an internal marketing programme to deliver value to its customers? (1981)ǐn the context ofbank marketing ths theme has bon pururd by other, nashri oriented towards the identification of...

  • Module 8: Journal Assignment-Explaining Memory to a Child (20 points possible) Chapter 8 in your textbook...

    Module 8: Journal Assignment-Explaining Memory to a Child (20 points possible) Chapter 8 in your textbook starts off with a section on conceptualizing memory. In my PowerPoint lecture notes that I've posted, you will see that I've annotated a figure called the "Atkinson-Shiffrin Memory Model" on Slide #3 from Chapter 8; however, you will not find this figure in your book (assuming you have the 8th edition or higher). In contrast, Figure 8.1 from your textbook (found on page 233...

  • Module 8: Journal Assignment-Explaining Memory to a Child (20 points possible) Chapter 8 in your textbook...

    Module 8: Journal Assignment-Explaining Memory to a Child (20 points possible) Chapter 8 in your textbook starts off with a section on conceptualizing memory. In my PowerPoint lecture notes that I've posted, you will see that I've annotated a figure called the "Atkinson-Shiffrin Memory Model" on Slide #3 from Chapter 8; however, you will not find this figure in your book (assuming you have the 8th edition or higher). In contrast, Figure 8.1 from your textbook (found on page 233...

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