Implementing State Machines

Hello All ,

Can I have pointers to resources which informs about
implementing state machine techniques.

Thanks,
Yogesh
yogi_bansalAsked:
Who is Participating?
 
Ernest022699Commented:
If possible, avoid making state machines.  They are difficult to debug, and notoriously hard to maintain.  Unless you need the speed and efficiency of a state machine, use some other technique.  Sorry.
0
 
arnondCommented:
do you need software implementations or hardware implementations ?

Arnon David.
0
 
yogi_bansalAuthor Commented:
Arnond ... software state machines...
Sorry, Ernest cannot do without them....
0
 
arnondCommented:
how about this:

..
..
..
while (1)
{
 switch (state)
   case (state1):
......
   break;
  case (state2):
......
  break;
.......
.......
.......
  case (staten):
......
   break;
}

Arnon David.
}
0
All Courses

From novice to tech pro — start learning today.