Answered step by step
Verified Expert Solution
Link Copied!

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 x
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.
Q2: 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Current Trends In Database Technology Edbt 2006 Edbt 2006 Workshops Phd Datax Iidb Iiha Icsnw Qlqp Pim Parma And Reactivity On The Web Munich Germany March 2006 Revised Selected Papers Lncs 4254

Authors: Torsten Grust ,Hagen Hopfner ,Arantza Illarramendi ,Stefan Jablonski ,Marco Mesiti ,Sascha Muller ,Paula-Lavinia Patranjan ,Kai-Uwe Sattler ,Myra Spiliopoulou ,Jef Wijsen

2006th Edition

3540467882, 978-3540467885

More Books

Students also viewed these Databases questions