I have been looking around on the internet and have not found a good answer yet. If anyone could be so kind and supply a code sample I would greatly appreciate it. I apologize for the simplicity of the question.
Tell me more
×
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.
|
This is the simplest one of all: it's when your instructions are executed in the same order that they appear in your program, without repeating or skipping any instructions from the sequence. For example, this is sequential execution:
On the other hand, this is not sequential execution, because one instruction is going to be skipped.
|
|||||||||||||
|
|
Sequential code means that it is accessed by a single thread. This means that a single thread can only do code in a specific order, hence it being sequential. The other thing is concurrent code, multiple threads may access the same code synchronously. The programming needs special care put in to it, as multi-threading can pose security risks and inconsistency risks. |
|||
|
|