Task state diagram

Posted on 2006-04-04
Last Modified: 2008-02-26
Hello experts

I have been asked in my university to solve below problem, but i could not understand it, will u please halp me to solve it or make me understand what is it??

Implement a demonstration model of a task state diagram with the option to stop execution and start new programs with different priorities, change priorities.
Programs should be modelled as sequence of modules (calculating, I/O, WAIT operations, ...).
Question by:rachelee
    LVL 86

    Accepted Solution

    You'll find an explanation at and an example at - that should help you understand what a task state diagram is and get you started. Hard to add up more to an "almost homework" Q ;o)
    LVL 39

    Expert Comment

    >>>> but i could not understand it

    Would you post the (code) parts you could not understand and/or ask specific questions rather than asking for a link/sample that most likely couldn't be understood as well?

    Regards, Alex

    Author Comment

    Actually its an homework question which I could not understand at all, what shall i present? how in which programming langauge?

    LVL 39

    Expert Comment

    Here is the C++ TA. If you got a sample from somewhere but did not understand, you should post it here and spot the lines where you need help with. If it isn't  C++  you should try to convert as far as you could or ask how to convert specific lines if you got stuck. In any case we need some efforts from you before we could give help. And it is *NOT* enough to post the link to another EE question, especially if you are not the questioner.

    Regards, Alex

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Live - One-on-One C++ Help from Top Experts

    Solve your toughest problems, fast.
    C++ experts are online now and ready to help you.

    In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
    Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
    The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
    The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now