What does it mean to spawn a process?

Assignment Help Basic Computer Science
Reference no: EM13162861

hw6:1. Process can be in different states to allocate the resources better. List the symbol and meaning for each of these states.

2. What does it mean to spawn a process?

3. How can you determine what processes are owned by the current login user?

4. Compare and contrast a job number with a process identification number.

5. For this questions, refer to the following listing:

    [2]          Stopped          sort       /etc/passwd

    [3]    -     Stopped          vi    .cshrc

    [4]   +     Stopped          more    .login

    [5]           Running          find / -name  foo

 

(1) What command would you use to bring the vi editor to the foreground?

(2) What is the command you would use to kill the more?

(3) What is the command you would use to get this listing?

6. Compare and contrast background and foreground jobs. Include the syntax you use to place a command in foreground and in background

7. What is the function of jobs command?

8. How do you bring a job from foreground to background? Write down the steps

 

hw7:Q1. (Duplicate Elimination) Use a single-subscripted array to solve the following problem.

Read in 20 numbers, each of which is between 10 and 100, inclusive. As each number is read, print it only if it's not a duplicate of a number already read. Provide for the "worst case" in which all 20 numbers are different. Use the smallest possible array to solve this problem.

 

Q2. (Airline Reservations System) A small airline has just purchased a computer for its new automated reservations system. The president has asked you to program the new system. You'll write a program to assign seats on each flight of the airline's only plane (capacity: 10 seats).

Your program should display the following menu of alternatives:

 

Please type 1 for "first class"

Please type 2 for "economy"

 

If the person types 1, then your program should assign a seat in the first class section (seats 1-

5). If the person types 2, then your program should assign a seat in the economy section (seats 6-

10).Your program should then print a boarding pass indicating the person's seat number and whether it's in the first class or economy section of the plane.

 

Use a single-subscripted array to represent the seating chart of the plane. Initialize all the elements of the array to 0 to indicate that all seats are empty. As each seat is assigned, set the corresponding element of the array to 1 to indicate that the seat is no longer available.

 

Your program should, of course, never assign a seat that has already been assigned. When the first class section is full, your program should ask the person if it's acceptable to be placed in the economy section (and vice versa). If yes, then make the appropriate seat assignment. If no, then print the message "Next flight leaves in 3 hours."

 

Reference no: EM13162861

Questions Cloud

The grand canal : The Grand Canal, completed during the Sui dynasty linked
Calculate the total gas pressure after on half-life : The decomposition of N2O to N2 and O2 is a first order reaction. At 730 degrees Celcius the half-life of the reaction is 3.58x10^3 min. If the initioal pressure of N2O is 2.10 atm at 730 degrees Celcius, calculate the total gas pressure after on h..
What mass of oxygen is collected : A sample of oxygen gas is collected over water at 25 degrees C and a total pressure of 637 torr. The volume of the gas collected is 500.0 mL. What mass of oxygen is collected? The vapor pressure of water at 25 degress C is 23.8 torr.
What is the molar mass of adrenaline in a solution : What is the molar mass of adrenaline in a solution of 0.64 g of adrenaline in 36.0 g of CCl4 elevates the boiling point by 0.49?
What does it mean to spawn a process? : Process can be in different states to allocate the resources better. List the symbol and meaning for each of these states. 2. What does it mean to spawn a process?
Examples of transculturalism in lion king : Examples of transculturalism in "lion King" and how it is related to the audience the strength of blending cultural artistic expression on stage
Calculate the concentration of ammonium ions : A solution is prepared by dissolving 25.0 g of ammonium sulfate in enough water to make 100.0 mL of stock solution. A 10.0 mL sample of this stock solution is added to50.0 mL of water. Calculate the concentration of ammonium ions and sulfate ions ..
What is the empirical formula : Styrene, a compound substance used to make Styrofoam® cups and insulation, contains 92.3 and 7.7 by mass and has a molar mass of 104 . What's the empirical formula?
What is the half-life of a second-order reaction : What is the half-life of a second-order reaction in which 45.0% of the original concentration of 1.00 M remains after 325 seconds?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What dangers would you warn against?

Under what factors would you recommend that an organization store information outside of its system? What dangers would you warn against? What recommendations could you provide to address the dangers?

  Explain professional responsibility to complete installation

You are an engineer involved in the development of a financial system. During installations, you discover that this system will make a significant number of people redundant. It is your professional responsibility to complete the installation as..

  Explain local telephone calls-long distance telephone calls

Will distinction between local telephone calls and long distance telephone calls ever disappear? What may cause this to happen?

  Describing how prolog executes command

Describe how Prolog executes command (query) and goal matching process.

  Secure windows-unix-linux servers from known shortcoming

The CIO has asked you to explain why you suggest it is so significant to secure your Windows and Unix/Linux servers from known shortcomings/vulnerabilities.

  Explaining method effective in cracking web passwords

More people are utilizing online shopping and banking. Explain one method that you believe is most effective in cracking Web passwords.

  Benefits of binary file called registry

Write down the benefits and disadvantages of configuration in binary file called registry.

  Steps to diagnose application changed from original state

Write down steps would you take in diagnosing the application which has been changed from its original state? Describe the answer.

  Explaining dns zone in secure dynamic updates

If a DNS zone accepts only secure dynamic updates and the DHCP server is a member of the DnsUpdateProxy security group.

  Sketch hierarchy chart and draw logic for program

Sketch the hierarchy chart and draw the logic for program which comprises housekeeping, detail loop and end-of-job modules and which computes service charge customers.

  Explaining mandatory access control implementation

How are Novell AppArmor and the Red Hat "targeted" SELinux policy similar? Is either a true Mandatory Access Control implementation. If not, explain why.

  Solve reasoning problem

If Abby is communicating, so is Randy. Vijay and Kevin are either both communicating or neither is. If Heather is communicating, then so are Abby and Kevin. Describe your reasoning.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd