Question

give two reasons why it might be advantages to write multi - threaded program instead of...

give two reasons why it might be advantages to write multi - threaded program instead of a single threaded program?

Homework Answers

Answer #1

Advantages of Multi-threaded program instead of single threaded program are -

1) Multi-threaded program enhances the performance of program by decreasing the development time of it . It is because in Multi-threaded program work will be divided into many threads and that will increase the performance of the program and in single threaded program work will be done by single thread so it will take more time for program to execute.

2) Multi -threaded program will be more responsiveness than single threaded program , because multi-threading program that is running in some application will be running if any part of it is blocked or it is performing lengthy operation and therefore it will increase the responsiveness of program , and in case of single threaded program , if a program is stuck or blocked at some point then the whole application will get stuck .

Know the answer?
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
Similar Questions
JAVA use the concepts in concurrent programming to write a basic multi-threaded program. You will be...
JAVA use the concepts in concurrent programming to write a basic multi-threaded program. You will be creating a program that simulates the sound of soldiers marching: “Left, Left, Left, Right, Left”. You will need one class to print “Left” and one to print “Right”, as well as a class to drive the program. LeftThread.java public class LeftThread extends Thread { public void run() { for(int i = 0; i < 10; i++) { //TODO: Print "Left" //TODO: Print "Left" //TODO:...
Give 2 reasons why the theory of comparative advantage is not fully applicable Name 3 advantages...
Give 2 reasons why the theory of comparative advantage is not fully applicable Name 3 advantages Boeing gains by globalizing and being a Multinational Enterprise.
The following multi-threaded program uses 3 concurrent threads (T0, T1, and T2). The threads are synchronized...
The following multi-threaded program uses 3 concurrent threads (T0, T1, and T2). The threads are synchronized by 3 semaphores (S0, S1, S2). What is the maximum number of times '0' will be printed by thread T0? // Global to all threads Semaphore S0(1), S1(0), S2(0) Thread T0 While (true) S0.wait() print( '0' ) S1.signal() S2.signal() endWhile Thread T1 S1.wait() S0.signal() Thread T2 S2.wait() S0.signal()

Give some reasons why the project of physiological grounding might lead to egoistic ethics
Give some reasons why the project of physiological grounding might lead to egoistic ethics
Epic Games fired me so I wrote my own multi-threaded game engine called RealEngine. Here’s a...
Epic Games fired me so I wrote my own multi-threaded game engine called RealEngine. Here’s a snippet. Thread 1: loadAssets(); launchUI(); realEngineStarted = true; cache_t * c = objCacheInit(); …             Thread 2: while (!realEngineStarted) { } objCacheInsert(c, new Sprite(“mario”)); … Is my code buggy? Explain why or why not. If there is a bug, explain how we might fix it.
Describe three different uses of GDP, or give three different reasons to explain why it might...
Describe three different uses of GDP, or give three different reasons to explain why it might be useful to calculate GDP.
Name two reasons why overhead might be underapplied in a given year and how this might...
Name two reasons why overhead might be underapplied in a given year and how this might be able to be prevented? What is a predetermined overhead rate and how is it computed?
Write a Java program using a single multi-level nested for-loop to display the following pattern (For...
Write a Java program using a single multi-level nested for-loop to display the following pattern (For each iteration, only one character can be printed) : 1,2,3,4,5,6,7,8,9#1,2,3,4,5,6,7,8,9#1,2,3,4,5,6,7,8,9# 3,6,9,12,15,18,21,24,27#3,6,9,12,15,18,21,24,27#3,6,9,12,15,18,21,24,27# 5,10,15,20,25,30,35,40,45#5,10,15,20,25,30,35,40,45#5,10,15,20,25,30,35,40,45#
Give two reasons why the surety-guarantor distinction is important.
Give two reasons why the surety-guarantor distinction is important.
Explain three reasons why a mutation in a single allele might be difficult to detect in...
Explain three reasons why a mutation in a single allele might be difficult to detect in a population.
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT