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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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