Question

1. a. (True/False) A single process can have more than 2 threads. d. (True/False) Every thread...

1.

a. (True/False) A single process can have more than 2 threads.

d. (True/False) Every thread has its own virtual address space.

f. (True/False) A process may have 0 threads.

g. (True/False) Threads belonging to separate processes cannot share memory.

h. (True/False) Like function ‘fork’ in the process API, function ‘pthread_create’ creates a clone of the current thread.

i. (True/False) Condition variables can be implemented using locks as the only available synchronization primitive.

j. (True/False) Dekker’s mutual exclusion algorithm does not use a test-and-set instruction.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

a. True A single process can have more than 2 threads

Depending on the OS , there is a maximum limit for creating number of threads we can create within a process.

d. False . Every thread has it's own virtual address space.

Threads are light weight process which are associated with same virtual space as with the same process.

f. True . A process may have 0 threads

Yes,, Threads are optional . It depends on the programming requirement to use them or not.

g. False,

Threads belong to same process , so they can share the memory

h. True

‘pthread_create’ creates thread under current process

i. False

Semaphores are also other synchronization methods.

j. True  

Dekker’s mutual exclusion algorithm does not use a test-and-set instruction.

Add a comment
Know the answer?
Add Answer to:
1. a. (True/False) A single process can have more than 2 threads. d. (True/False) Every thread...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT