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

  Windows active directory

A research paper on Windows Active Directory and User Access Controls with some additional info about Group Policy Objects and Microsoft Baseline Security Analyzer.

  How long will it take to reach steady-state value

Investigate the effect of the parameter b on y(t). To do this, plot y versus t for several values of b on the same plot. How long will it take for y(t) to reach 98 percent of its steady-state value?

  Wearable computing technology

A REPORT OF WEARABLE COMPUTING TECHNOLOGY IN RESOLVING TIME SHEET ISSUES FOR PAYROLL SYSTEM INPUT TO THE CEO

  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..

  Explain data by state of computer-s electrical switches

Differentiate between computer data represented by the state of computer's electrical switches and meaningful information which is displayed to user.

  Factors finding whether something is politically feasible

Describe political feasibility. What factors go into determining whether something is politically feasible in an organization? Answers may include whether a sponsor exists

  Explain computer etiquette for effective communication

Each day we should be careful to insure that personal information is not compromised. Computer etiquette is difficult for effective communication.

  Important considerations in the design of performance

What are some of the important considerations in the design of performance benchmarks for mobile devices? Why?

  What are the benefits of using tangible interfaces

What are the benefits of using tangible interfaces compared with other interfaces like GUI, pen-based or gesture?

  Describe happening of water lubrication film under ice skate

Similar reasoning is utilized to describe occurrence of water lubrication film beneath ice skates. Describe your opinion of this explanation?

  Diagnos application which has changed from original state

How does third-party plug-ins change process of diagnosing and troubleshooting errors within application? What steps would you take in diagnosing the application which has been changed from its original state?

  Advantage and disadvantage of using word to work in graphics

Identify the advantages and disadvantages of using Word to work with graphics, tables, and special formatting functionality. Provide specific examples.

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