1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
dmitriy555 [2]
4 years ago
11

Assuming a computer has a single processor and a single core with no support for parallel execution, explain why running a multi

-threaded program would show no performance improvement. Would inter-process communication be relevant in such a context?
Computers and Technology
1 answer:
IRISSAK [1]4 years ago
4 0

Answer:

Explanation:

Before we go deep into this question lets have some brief knowledge on parallel execution, parallel processing and multi tasking.

Parallel Execution : in this two or more tasks or program can be executed parallel or simultaneously.

For example if there are two processors and four programs to be executed then it executes two at a time.

Multi tasking: in this two or more tasks can be performed simultaneously switching between them without exiting any application.

For example we use notepad, word pad, excel sheet, chrome all at a time switching between each other.

Multi Threading: It is splitting up the program into different threads.If the contents in the program are independent on each other then the program can be split into multi threads and can be processed.

Multi threading in multi core or processing unit : In this threads are executed parallel or simultaneously in different processes.

For example if there are two processors then one multi threaded program can execute two threads in two different processors.

Multi threaded program in single core unit : In this, program is multi threaded where as threads cannot execute parallel or simultaneously. they sholud be executed by the same processor. So they should wait in queue

Ex: consider three tasks of 6 secs each and multi threaded each into three threads of two seconds.

Task1 3secs > task2 3secs > task3 3 secs it repeats until each task is completed

Total time taken is 3+3+3+3+3+3+3+3+3 is 18seconds...

If they are executed one by one without multi threading total execution time has no change..

Where as multi threading program has its advantages if different threads are executed at different place..

If one thread executes at network, another at printer and other processor then these three can execute at same time at different processors. Multi threading has its advantages but in single core systems it doesn't affect the performance.

Inter process communication consists of

Information Sharing, message passing, Modularity.

In shared memory inter process communication processes shares the memory between each other.

In message passing communication process communicates like request and replies for information and resources.

Interlocking is due to error in resource sharing and information sharing. It results in system collapse.

Al these process communication is required if there are two or more.processes but in single core it is not much useful and advisable.

In single core there will be a single processor, processing multi threaded program as it can access all the memory contents there will be no problem of process communication. Where as in multi core systems different processes may compete for same memory or resource.

In single core systems inter process communication makes things complex and these complexity is not much useful in any of the improvement in performance.

You might be interested in
Differentiate between a software package and integrated software and why users would choose one over the other.
chubhunter [2.5K]

Answer:

Software Package means software which is used collectively, implements alike purposes, or combines alike characteristics and is bundled collectively being one kit from software applications, where as, Integrated software is a combination of software specifically built to operate on almost linked applications.

Explanation:

Users should choose Software Package because of the following reasons:

Cheap price compared over buying individual application independently.

Opportunity to introduce the total of the applications at the corresponding period or just that applications you require to work.

The compatible user interface of individual application over another.

The facility to distribute data among applications.

Coming updates can refresh every application whole by the corresponding event.

Perfect for individual use, licensed use, huge or little company.

Every software holds the full-featured transcription.

7 0
3 years ago
An example of hardware is a _____. a)word processor b)database c)motherboard d)internet
zubka84 [21]
Salutations!

<span>An example of hardware is a __________.

</span><span>An example of hardware is a motherboard. Hardware are physical feature of a computer that you can touch and see. The rest of the options listed are all software --- 

Software are list of commands listed by the computer, they are also features of computer, but you can't physically touch them.

Thus, your answer is option C.

Hope I helped :D</span>
5 0
3 years ago
Read 2 more answers
At Moore High, 456 students attended the prom. This is 65 more students than
wlad13 [49]

Answer:

B-15%

Explanation:

5 0
3 years ago
Read 2 more answers
How do u know when a website doesnt like u?
stira [4]
Honest answer a website does not have feelings so therefore there is no way to tell if a website likes you or not!! The reason it may not load is because your IT provider or maybe to firewalls that are set up on your modem. Sometimes its not that and you just need to keep you computer up to date that way it can get on the websites! Hope i helped
3 0
4 years ago
Why should running your unit test suites not take a long time?A. Unit tests aren't that important, so less time should be spent
masya89 [10]

Answer:

D. Tests that run too long risk slowing down the feedback cycle for developers

Explanation:

The reason you should run your unit test suites not to take a long time is that "Tests that run too long risk slowing down the feedback cycle for developers."

Otherwise, the developers would find it difficult to detect problems instantly, causing delay to fix the problems which will eventually delay the developers or project's team to advance to the next stage of the project.

3 0
3 years ago
Other questions:
  • Consider a tcp connection between host b and server
    9·1 answer
  • Write a Python function called validateCreditCard that takes 8-digit credit card number as the input parameter (string value) an
    8·1 answer
  • The ______________________ are incident management personnel that the incident commander or unified command assign to directly s
    10·1 answer
  • The _____ model of a systems development life cycle provides for progressive development of operational software, with each rele
    8·1 answer
  • What is key for evaluating internal controls such as human resources, logistics, information technology, risk, legal, marketing
    11·1 answer
  • Karen is learning about searching the Internet and collaborating with other people online. ​ ​ Karen has found and removed all W
    7·1 answer
  • Which is the best book for digital electronics?
    5·1 answer
  • What is the importance of eliminating marks that classify a master key
    7·1 answer
  • I’m wondering how to get images to show on my computer because at the moment images won’t show and I’ve cleared my cache and eve
    14·1 answer
  • Discuss the communicatin process giving detailed explanation on each process​
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!