answersLogoWhite

0


Best Answer

Single-threaded processes only have one thread of execution -- therefore it would not be possible to have two processes waiting for input at the same time.

User Avatar

Wiki User

9y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Two threads are waiting for keyboard input one in each process Does this problem ever occur in single threaded processes?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is the difference between processes and threads?

The memory space, where a given application is executed is called - process. A Process is the memory set aside for an application to be executed in. Within this process the thing, which is really executed is the thread. The key difference is that processes are fully isolated from each other; threads share (heap) memory with other threads running in the same application. Threads share the address space of the process that created it; processes have their own address. Threads have direct access to the data segment of its process; processes have their own copy of the data segment of the parent process. Threads can directly communicate with other threads of its process; processes must use inter-process communication to communicate with sibling processes. Threads have almost no overhead; processes have considerable overhead. New threads are easily created; new processes require duplication of the parent process. Threads can exercise considerable control over threads of the same process; processes can only exercise control over child processes. A great answer to the question can also be found here: (link moved to link section)


What is Difference between edge chasing and path pushing algorithm?

In computer science, edge-chasing is an algorithm for deadlock detection in distributed systems.Whenever a process A is blocked for some resource, a probe message is sent to all processes A may depend on. The probe message contains the process id of A along with the path that the message has followed through the distributed system. If a blocked process receives the probe it will update the path information and forward the probe to all the processes it depends on. Non-blocked processes may discard the probe.If eventually the probe returns to process A, there is a circular waiting loop of blocked processes, and a deadlock is detected. Efficiently detecting such cycles in the "wait-for graph" of blocked processes is an important implementation problem.


Process improvement model in software engineering?

Process models can be used to help understand real processes and to identify which aspects of these processes could be supported by CASE tools.


What is plural of processing?

You wouldn't pluralize "processing", but you would pluralize "process" making more than one process "processes".


If process stop its execution will thread also stop or it will continue to run?

Processes do not execute, it is the threads within a process that actually execute. All processes have at least one thread of execution, the main thread. If the main thread falls from scope, the process ends, taking all threads with it. This can lead to undefined behaviour if the threads are not terminated gracefully from within the main thread before it falls from scope.

Related questions

Which step in the troubleshooting process is important to help avoid repeating repair processes that were performed previously?

In the troubleshooting process, it is important to correctly identify the problem at the beginning. This will help prevent repeating repair processes.


What is deamon proscess in unix?

A daemon process is a background service, running as a disconnected process. This means it does not have a terminal interface with an output screen or a keyboard. These services run network processes, job scheduling, etc.


Why shell process terminate when you press D at beginning of new line?

Not all shell processes do this. If the shell process is asking for standard input (keyboard), the Control-D is an end of file signal, which means no more data will be forthcoming. If a process requires or uses input and you tell it there isn't any, most processes will just end at that point.


How do you spell process in plural?

The plural form of "process" is "processes."


What is the plural of process?

Processes is already plural. The singular form is process.


What is Mental process is?

Your internal mental processes are associated with the brain. It can include thoughts, memory, problem solving skills and language.


What is mental process?

Your internal mental processes are associated with the brain. It can include thoughts, memory, problem solving skills and language.


How do you spell the plural form of process?

The plural form of "process" is "processes."


What is machining process?

Machining process is a broad term that refers to the cutting processes, abrasive processes and the non-traditional machining processes.


John is engaged in a mental process of manipulating processing and communicating information What is the term for this process?

The term for this process is cognition. Cognitive processes involve mental activities such as thinking, knowing, remembering, and problem-solving.


Why does my car's water pump have a threaded hole in the bottom?

It was there as part of the process of making it.


Is electrothermal process or electrolytic process used in?

Electrothermal processes, and electrolyric processes are both used in manufacturing trucks. When trucks are made, these processes are really significant.