Answered step by step
Verified Expert Solution
Question
1 Approved Answer
A programe: Thregram in execution may have a number of threads in it . to A program in exectweingt processes within a process. A thread
A programe:
Thregram in execution may have a number of threads in it to
A program in exectweingt processes within a process.
A thread is the cocution is often referred as thread
A process consists of multiple threads
A Task is a smallest part of process. execute concurrently with other parts of the process.
A thread has its own address space
A process is sometime referred as task. A thread is often referred as lightweight process.
A thread use the process's address space and share it with the other threads of that process
A thread can be in one of five states: New, Ready, Running, Sleep, or Finished.
Q: Choose the best answer:
Multitasking is managed by
OS
A
B
B speciric program
C user
D task owner
A thread
is a collection of one
C program
D task
A thread can communicate with other thread directly by using methods like
A wait
B notify
C notifyAll
The states of the threadis
A ready
B running
C dead
Which of the following is not a thread state?
notify
B ready
C blocked
all of above
notify
Which of the following is not a thread operation?
A notify
running
C sleep
D wait
A start
is overridden and contain the code that will be executed by the new thread.
Call method
run
C execute
D main
start
B run
C execute
D main
Operations of the thread
A get
sleep
C execute
D all of above
What is the operation blocking thread for a dedicated period?
A wait
p sleep
C block
D lock
What is the operation blocking thread until another thread notities?
c black
D notify
B sleep
C block or the thread?
Which of the
B wait
C intermpt
D new
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started