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

  Social groups and society

What role do groups play in a society's social structure? Could you give me two examples of groups, describing how these groups are influenced by their norms and sanctions?

  Analyze the modern-day relevancy of the models

Analyze the modern-day relevancy of the models of Donald Hebb, and Jean Piaget (such as in media advertisements or education) giving specific examples.

  Overview of respiratory system

Working in health care industry, a medical professional should be familiar with the different systems in the body. The respiratory system is one such system that you might encounter when working as a medical billing and coding specialist.

  Progression of relationships in life

Think about the progression of relationships in your life. How is your communication different when you first meet a stranger, when you get to know the person and find something in common

  Historical inequities that affect current injustices should

social justice has been defined in different ways but the definitions usually include similar ideologies. as you study

  Visualizing successful completion of physical activities

Write a position response in which you discuss whether this practice of visualizing successful completion of physical activities is "pop psychology" and mysticism or whether the practice has research-supported underpinnings.

  The area of research should be described and the purpose of

each person must complete a research paper addressing one of the following topics or a mutually agreed upon topic

  Differences in human culture such as religion-ethniciy

How do differences in human culture such as religion, ethnicity, nationality, etc. impact on the moral status of animals, particularly as it relates to your topic? Provide at least one source with a citation (other than the textbook) to support yo..

  Ethical standards override the employees duty of loyalty

If an employer engages in an activity that violates the employees ethical standards but does not necessarily violate any public policy or law, does the employe's duty to abide by her or his own ethical standards override the employee's duty of loyalt..

  Discuss the concept of customer value

Discuss the concept of customer value and its importance to successful marketing. How do you think customer value and relationship marketing are linked?

  Conducting business on a global scale

Identify the two legal systems in the world of business. Why is it important to appreciate the legal systems of other countries when conducting business on a global scale.

  What type of sampling produces representative samples

How many mixed sampling designs results if you make a matrix or table where you cross the time orientation criterion (two types) and the sample relationship criterion? What type of sampling produces representative samples?

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