
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
In a process using threads, is there one stack per thread, or one stack per process? Explain.
In the final version of the process state model, we have a state “blocked and swapped.” If the goal of blocking a process is to prevent the blocked process from wasting resources, why do not we only have “blocked and swapped”? Why a separate state “blocked”? Explain your answer.
Linux systems do not allow all signals to be caught or ignored. Suppose they did; how would you stop an application that has ignored all signals from running?
Assume at time 5, no system resources are being used except the processor and memory. Given this, consider this sequence of events:
at time = 5: P1 executes a command to read from disk unit 3;
at time = 15: P5’s time slice expires;
at time = 18: P7 executes a command to write to disk unit 3;
at time = 20: P3 executes a command to read from disk unit 2;
at time = 24: P5 executes a command to write on disk unit 3;
at time = 28: P5 is swapped out;
at time = 33: an interrupt occurs from disk unit 2, P3’s read is complete;
at time = 36: an interrupt occurs from disk unit 3, P1’s read is complete;
at time = 38: P8 finishes;
at time = 40: an interrupt occurs from disk unit 3: P5’s write is complete;
at time = 44: P5 is swapped back in;
at time = 48: an interrupt occurs from disk unit 3: P7’s write is complete
For each of times 22, 37 and 47, identify which state each process is in. If a process is blocked, identify the event on which it is blocked.
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- A class with synchronised method A and a regular method B is provided to you. Can A be executed simultaneously by both threads in a programme instance with two threads?Can they carry out A and B simultaneously?arrow_forwardIs it feasible for a single process to get stopped mid-execution? Justifications for your replies are required.arrow_forwardIs there any logic to forcing all threads in a VM to share the same method space?arrow_forward
- Do threads run at the user level or the kernel level provide greater performance? Explain the key differences between threads at the user level and those at the kernel level. Can there possibly be an instance when one variety trumps another?arrow_forwardHow do kernel-level and user-level threads differ? In the circumstances presented, which kind performs better?arrow_forwardWrite a Java program using Thread with single Server and Multiple Clients. NOTE: Client must be running until Bye message is sent. Server should never stop. I need answer question plsarrow_forward
- In certain instances, user-level threads may be preferable than kernel-level threads. How do user-level and kernel-level threads differ? Does one species do better than the others in a particular scenario?arrow_forwardI need help building a Java application/program that will exhibit concurrency concepts. The application should create two threads that will act as counters. Thread one should count from 0 to 20. Once thread one reaches 20, then a second thread should be used to count down from 20 to 0. The output needs to look something like: thread 1: 0 thread 1: 1 thread 1: 2 .................. etc thread 1: 20 thread 2 : 20 thread 2: 19 .................etc thread 2 : 0 Please and thank youarrow_forwardWe previously said that there may be no more than one active method inside of each thread that is currently running in the JVM at any one time. What gives you reason to think that this is true?arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education