Question

In: Computer Science

Network Security: A process can be in one of three states: running, ready, and blocked. A...

Network Security: A process can be in one of three states: running,
ready, and blocked. A job is a kind of process
and can be in one of three states: foreground, background, and paused.


What’s the similarity between the three process states and the three job states?

Hint: It’s not a one-to-one mapping.

Solutions

Expert Solution

Ready
In the ready state the process will be waiting so that it gets assigned to the processor by the short term scheduler, so that it can run. This state comes just after the new state for the process.

Running
The process is in the running state when the process instructions will be executed by the processor. This will be done when the process is assigned to the processor using the short-term scheduler.

Blocked
The process will be in blocked state if it is waiting for some event to occur. This event can be I/O because the I/O events are executed in the main memory and it does not require the processor. After the event is completed then the process again will go to ready state.

Foreground: When we enter to a command in the terminal window, then the command would occupy that terminal window until it gets completed. This is a foreground job.
2. Background: When you enter to an ampersand ie.,(&) symbol at the end of the command line, then the command would run without occupying the terminal window. The shell prompt will be displayed immediately after we press Return. This is example of a background job.

PAUSE PROCESS would suspends the execution of the process until it have been reactivated by the RESUME PROCESS command. In this period, the process does not take any time on the machine or the system . If the process is been paused, the process will be still in the memory. If process is been already paused, then PAUSE PROCESS does nothing.

A process will be program which is under execution.
The concept of this jobs is that its the
combination of one or more
processes.
And answer to the question
specifically is :
As I said a there could be multiple
process in a job, So if a job is in the
foreground or background state,
we can't guarantee that all the
process in it are in the running
state, they may be in running,
ready or the blocked state.
But if a job is in the paused state,
then we could be sure that all the
process in it would be either in ready
and the blocked state.
As this is not a one to one
mapping.


Related Solutions

As a process executes, it changes states. Explain what are ready state, running state, and waiting...
As a process executes, it changes states. Explain what are ready state, running state, and waiting state. Also, describe when a process moves between these three states
Provide a reason for each process state transition below: a) Ready -> Running: b) Running ->...
Provide a reason for each process state transition below: a) Ready -> Running: b) Running -> Ready: c) Running -> Blocked: d) Blocked -> Ready:
II. Arbitrage Suppose the economy can be in one of the following three states: (i) Boom...
II. Arbitrage Suppose the economy can be in one of the following three states: (i) Boom or “good” state, (ii) Neutral state, and (iii) Recession or “bad” state. Each state can occur with an equal probability. There are three securities available in the economy: A, B, C. The net payoffs of these securities are as follows: • Security A: at the end of the year, the security is expected to yield a net payoff of $30 in the good state,...
CNET Books has expanded considerably since you first got the network up and running three years...
CNET Books has expanded considerably since you first got the network up and running three years ago. It now occupies an entire building with 4 floors, and its LAN has grown to include several servers and more than 60 workstations. CNET Books has recently purchased another book company and needs more space and computers. Expansion plans include leasing another building four storeys (floors) higher in an adjacent location. The company has staff and guest users. There are 20 guest users...
Can explain process states, concept of process scheduling, context switch, and process table
Can explain process states, concept of process scheduling, context switch, and process table
Angel Life Insurance Corporation suffers a security breach in its computer network by one of its...
Angel Life Insurance Corporation suffers a security breach in its computer network by one of its employees. Before the company discovers the breach, the perpetrator obtains corporate financial records and other confidential data, including a list of its insured's names, addresses, social security numbers, and dates of birth. Is this a crime? If so, what are its elements? What statutes might you reference have been violated, if any? Does it matter whether the employee profited or benefitted from the information...
Identify one example of privatization of security in the United States. Why was privatization used in...
Identify one example of privatization of security in the United States. Why was privatization used in this instance? Based on your research, do you agree with the assertion that the private sector can provide services more cheaply and more effectively than the government?
One way a creditor can perfect a security interest is _____________ . a. by filing a...
One way a creditor can perfect a security interest is _____________ . a. by filing a UCC-1 with the correct government office (in Texas, the Secretary of State). b. by creating a Purchase Money Security Interest which perfects automatically. c. all of the answers are ways a creditor can perfect a security interest. d. by the secured party taking possession of the debtor’s collateral.
In one year the economy could be in one of three possible states: bust, normal, or...
In one year the economy could be in one of three possible states: bust, normal, or boom with corresponding probabilities of 0.25, 0.5 and 0.25. The returns on a common stock A and the market portfolio M conditional on the state of the economy are presented in the table below. Assuming CAPM holds in the economy, calculate the market risk premium over the period. Probability Stock A Market Portfolio Bust 0.25 −5% 3% Normal 0.50 10% 8% Boom 0.25 25%...
A security Dilemma is when one state decreases its security and leads other states to decrease theirs creating a spiral of decrease in story
A security Dilemma is when one state decreases its security and leads other states to decrease theirs creating a spiral of decrease in story True False
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT