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
  • TRUE-FALSE     Basic synchronization principles and multithreading 1. Java user threads can implement both busy-waiting and no-busy-waiting...

    TRUE-FALSE     Basic synchronization principles and multithreading 1. Java user threads can implement both busy-waiting and no-busy-waiting policy. 2. Priority inversion avoids deadlocks. 3. Spinlock mutex can be used as an adaptive mutex. 4. Java RTE can be blocked for Input/Output operation. 5. Interrupted user thread, which executes a method in a monitor, must be rolled back to undo any changes it performed. 6. The synchronization primitive by disabling interrupts can be used by an application program. 7. Bounded-waiting requirement is...

  • 1. Threads created by a single program share the same memory address space. T/F 2. Threads...

    1. Threads created by a single program share the same memory address space. T/F 2. Threads created by a single program share the same memory stack. T/F 3. Threads created by a single program share the same scheduling state (e.g., Ready, Waiting). T/F 4. Threads created by a single program share the same open files. T/F 5. A thread enters the Running state when the thread scheduler resumes it. T/F 6. The thread_exit() call can immediately garbage collect the exited...

  • 1. True-false or multiple choice. Provide a one-sentence explanation you will get no credit for a correct answer without a proper explanation. Suggested time to spend on these questions: 10 minutes....

    1. True-false or multiple choice. Provide a one-sentence explanation you will get no credit for a correct answer without a proper explanation. Suggested time to spend on these questions: 10 minutes. [4x5-20ptsl (a) True or false: Peterson's algorithm for mutual exclusion offers bounded wait. b) Thue or falher Cumsider a concumcent program comitingof several 1oad indctioms e instructions (or instructions with similar effects as store). Such a program can never have any race conditions (c) True or false: Solutions based...

  • Can someone help create this program for Linux. Part 3. IPC (InterProcess Communication) Programming In Part...

    Can someone help create this program for Linux. Part 3. IPC (InterProcess Communication) Programming In Part 3, you are asked to develop a multithreaded program and a Makefile to automate the compilation on Linux platform. This assignment assists you for better understanding of processes and threads management, multithreaded programming, and enhancing programming skills and experience with programming on a Unix-like environment. You are asked to implement a multithreaded producer-consumer problem with PThreads library in this programming assignment. The producer-consumer is...

  • True or false? Question 6 1 pts Every prime number other than 2 can be expressed...

    True or false? Question 6 1 pts Every prime number other than 2 can be expressed in the form of 4k + 1 or 4k – 3 for some k E Z. True False Question 8 1 pts Suppose that algorithm A has running time na + 10 log2 (n) and the algorithm B has the running time n log2 (n) + 5n (where both depend on the input value n). Then for a sufficiently large input value n, algorithm...

  • Question 1 2 pts The preprocessor executes after the compiler. False True Question 2 2 pts...

    Question 1 2 pts The preprocessor executes after the compiler. False True Question 2 2 pts What code is human-readable and follows the standards of a programming language? Secret code Source code Key code None of these Machine code Question 3 2 pts What is the symbol that marks the beginning of a one line comment? Question 1 2 pts The preprocessor executes after the compiler. True False Question 5 2 pts A statement that may be used to stop...

  • TRUE/FALSE QUESTIONS:  Foundations of Information Security and Assurance 1. There is a problem anticipating and testing for...

    TRUE/FALSE QUESTIONS:  Foundations of Information Security and Assurance 1. There is a problem anticipating and testing for all potential types of non-standard inputs that might be exploited by an attacker to subvert a program. 2. Without suitable synchronization of accesses it is possible that values may be corrupted, or changes lost, due to over-lapping access, use, and replacement of shared values. 3. The biggest change of the nature in Windows XP SP2 was to change all anonymous remote procedure call (RPC)...

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