Question

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 thread's resources and destroy the exited thread's thread control block. T/F

7. Threads are less expensive to create and destroy than processes. T/F

8. It is correct programming logic to assume that, once resumed, a thread will run without interruption up to the point of its next system call. T/F

9. It is correct programming logic to assume that the thread scheduling pattern will be the same on each run when the same program is executed multiple times with the same data and the same command line arguments. T/F

10. The Unix fork() system call is used to create a new process, and the Unix exec() system call is used to create a new thread. T/F

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

1. True because threads share the memory address space with other threads.

2. False because each threads have their own stack.

3. False. If one thread is blocked and waiting, a second thread in the same task can run.

4. True. Threads share all segments except their stack.

5. True. When a thread resumes it starts execution and enters running state.

6. True.

7. True.Threads are less expensive to create and destroy than processes.

8. False. It will depend on scheduling mechanism.

9. False.

10. False. exec() replaces the current process image with new one.

Add a comment
Know the answer?
Add Answer to:
1. Threads created by a single program share the same memory address space. T/F 2. Threads...
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