193k views
5 votes
Consider the following short paragraph:On a computer with a single core CPU, attempting to program real concurrency between two processes (as opposed to apparent concurrency) is impossible, because the CPU can in actuality only do one thing at a time. To fake the user into thinking that more than one process is running at the same time, the CPU can, for example, switch back and forth between running each process very quickly.Choose one of the following statements about this paragraph:a) It is all trueb) It is all falsec) Some of it is true, and some of it is false

User Piotrsz
by
6.6k points

1 Answer

3 votes

Answer:

Option a)

Step-by-step explanation:

PC having a CPU with single core, for the most part actualize multithreading by applying time cutting.

Multithreading is a feature Java that permits simultaneous execution of at least two pieces of a program for greatest use of CPU. Each piece of this program is known as a thread. Along these lines, threads are light-weight forms inside a procedure.

Along these lines, fundamentally it switches between various procedures. Fundamentally it is "tricking" a bit,while CPU can do just a single thing utilizing a single center or core in turn yet pretends having more than a single core.

User Benjymous
by
6.4k points