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

  Give examples of 3 simple (scalar or primitive) data types

Give examples of 3 simple (scalar or primitive) data types commonly provided by programming languages, and identify the method used to represent each data type in the machine

  How do providing goods and services for government differ

How do providing goods and services for the government differ from providing goods and services for other organizations?

  Explain global ubiquitous platform for online services

Recognize what you believe to be next set of core future service(s) to be offered via Internet over next 2 to 5 years based on current and evolving technologies.

  Comma-delimited text file

This is based on a comma-delimited text file that has already been created containing a 3 digit ID # and a first and last name. The last part of the excercise is as follows.

  Function that uses a switch statement

To locate nearest numbered cross street for a given avenue address, the following algorithm can be used: cancel last diget of the address, divide by two,

  Design the logic for a program

Using Visual Logic: Design the logic for a program that allows a user to entry 15 numbers, then displays each number and its difference from the numeric average of the numbers entered.

  Why are you normally required to bind a service

What steps need to be taken by a network service to be ready to receive TCP/IP connections? Why are you normally required to bind a service to a specific port?

  Calculate overall cost including installation-configuration

Calculate the overall cost, including installation, configuration, maintenance, ISP, and miscellaneous costs. Do not consider depreciation in the cost computation.

  Why information security is not factor for organization

But would not require to give for information security on those systems. Explain that environment and desribe why information security is not factor for that organization.

  Write difference between logical and physical modeling

What is the difference between logical and physical modeling? Give three reasons why logical models are superior for structuring business requirements.

  Explaining origins or genesis of wireless networking

Explain origins/genesis of wireless networking.

  Create pseudo code to read base price for tax

Create pseudo code for the following: Read base price. Tax is given at rate of 8.5%. If base price is over 20,000 then you should pay the extra luxury tax of 2% on base price.

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