1. A computer-based system for executing state-dependent processes, the computer-based system comprising: a command processor configured to receive one or more commands in a command stream and to manage one or more global states responsive to one or more global context events in the command stream; a plurality of processing blocks configured to receive the one or more commands in the command stream and to manage respective block states responsive to one or more block context events in the command stream, wherein each respective processing block executes a process on data in a data stream based on the one or more global states and the block states of the respective processing block; and an interface block configured to manage a counter for at least one processing block, wherein the counter includes a block state value indicative of the number of block states stored in the at least one processing block, and configured to stall the one or more commands in the command stream when the block state value exceeds a threshold.