What is the output of the below csim program

Assignment Help Other Subject
Reference no: EM13541296

What is the output of the below CSIM program?

#include <stdio.h>

#include "csim.h"

void process1(void);

void sim(void)

{

  int i;

  create("sim");

  printf("Begin at time = %f \n", clock);

  process1();

  for (i=0; i<10; i++)

  {

    hold(1.0);

    printf("sim() at %f \n", clock);

  }

}

void process1()

{

  int i;

  create("process1");

  for (i=0; i<10; i++)

  {

    printf("process1() at %f \n", clock);

    hold(3.0);

  }

}

If the statement create(“process1”); is removed from the program, what will the output be?

Reference no: EM13541296

Questions Cloud

Consider three ants each clinging for dear life : Consider three ants each clinging for dear life to the top surface of an ordinary compact disc and not moving with respect to the labelling. The ants are at distances 3, 4, and 5 cm away from the axis of rotation of the CD which is spinning at a cons..
What is the equivalent capacitance of the circuit : You have two capacitors: C1=410 nF and C2=260nF and a DC battery (Vbatt=9.00 volts). The two capacitors are connected to the battery in a series.
Determine the smallest allowable value of p if slipping : A recording tape passes over a 20-mm radius drive drum B and under the idler drum C. Knowing that the coefficents of friction between the tape and the drums are us=.40 and uk=0.30 and that drum C is free to rotate, determine the smallest allowable va..
Determine the height of the elevator from the bottom of the : A water contains a suspended solids concentration of 10.30 mg/L. Coagulation reduces this to 1.0 mg/L. To accomplish this, an alum dose of 13.30 mg/L is necessary. What is the dry weight of sludge produced in kg/day if the plant treats water at a rat..
What is the output of the below csim program : What is the output of the below CSIM program?
What is the difference between a combination : Assume that the probability of a server failing over night is p = 0.1. If you have 1000 servers, what is the probability that 100 servers will have failed over night?
What are some additional performance metrics of interest : Suppose you have two systems. System #1 processes jobs at rate 100 jobs/sec and system #2 at a rate 150 jobs/sec. What is the speed-up and relative change of system #1 with respect to system #2?
Describe the experiments needed to evaluate the design : Describe the experiments needed to evaluate the design alternatives. Give both a full factorial design and simple design. These experiments could be conducted on a simulation model or system prototype.
What is the probability of receiving 4 messages such that : Assume that the probability of a received message having an error is 0.10 (errors are independent). What is the probability of receiving 5 good (that is, error free) messages? What is the probability of receiving 4 messages such that 1 or more messag..

Reviews

Write a Review

Other Subject Questions & Answers

  Recognize the receiver and sender of the message the

write a 350-word paper about one misunderstanding you have experienced. please use a business- or work-related example

  Discussing the business entity

For each of the following business proposals, discuss the business entity that represents the best choice for each business, taking control, taxation, and liability issues into consideration.

  Primary processing for auditory sensations

The primary processing for auditory sensations is in the __________ lobe of the cerebrum.

  End of the civil war

The end of the Civil War, the United States elected its first black President. In the primary, Barack Obama was running against a white woman, Hillary Rodham Clinton. In the election, his opponent was an aging white war veteran, John McCain.

  What does the content attribute of a value state

What does the content attribute of a value state?

  Write a paper on examining human service interactions

Write a paper on examining human service interactions in terms of macro systems-communities and organizations. . Describe the concept of personal, interpersonal, and political empowerment. .

  The real rate of interest is the nominal or stated rate of

thinking as a manager do you think unemployment is good news or bad news? defend you answer.the real rate of interest

  Heme of love and arcadian happiness of return from cythera

The theme of Love and Arcadian happiness of the Return from Cythera, is based on the earlier work. The 19th Century academy dialogue about form versus color was carried on by the following artists. He is often identified as the great American painter..

  Risk in a revenue-producing project

Risk in a revenue-producing project can best be adjusted for by?

  Egocentrism-according to jean piaget

Preoperational thought process, according to Jean Piaget: egocentrism, a focus on perceptual appearances, difficulty reasoning about transformations, and lack of hierarchical classification.

  Continuous distribution with distribution function

Suppose that X has a continuous distribution with distribution function

  What are the objectives of safety training and education

What are the objectives of safety training and education Describe the training methods that should be adopted in order to properly convey the safety message in an organisation

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