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

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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