Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I started to study about state transition chart. As I see, it assumes all state transition is done instantly with no time consuming. But in most of my case, I'm heavily depending on asynchronous I/O, so it seems to be less efficient modeling them with the chart.

How do you think about how to represent asynchronous state change? Please recommend something to me :)

share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

As far as my knowledge goes for (UML) State diagrams it can't happen. If the state change isn't instantly there is obvious a in between state. In your example a state where your waiting for the IO to complete.

share|improve this answer
-1 The question is not about state diagrams but state charts. –  KeesDijk Oct 19 '11 at 6:41
add comment

Not sure if you intentionally used the term state chart. State diagrams are more known ( see discussion for comparison )

In the comparison there also is a nice overview of different ways of modelling parallel states in a state chart. I don't know of a real notation of asynchronous state transitions in a state chart but when you model the events and possible states the can happen in parallel you might also show the information that you want. Or you might combine the state chart and state transition diagram.

If you did mean state transition diagram here is a nice overview of different ways of modelling asynchronous state transitions in a state transition diagram

Hope this helps.

share|improve this answer
-1 This question is not about State transition diagrams :). But seriously could you elaborate a bit about the differences of state charts and uml state diagrams (to my knowledge both hierarchy and paralelism are supported in either. The link you give indicates those 2 as the main difference. –  refro Oct 19 '11 at 7:20
all confused now, your answer is accepted so probably it is about state diagrams, can't take back my minus 1 unless the question is edited. As far as I know the state chart is just a clever/elegant way of showing parallelism. So they both can but the state chart does it more elegant. –  KeesDijk Oct 19 '11 at 8:03
@KeesDijk I am sorry for my vague wording. I don't have solid academic foundation on this topic, and I was just looking for any nice way of visual representation of state transition for concurrent stuffs. –  Eonil yesterday
add comment

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.