The following code is written in Python. It continues looping and asking the user for an oligonucleotide sequence and as long as it is valid it outputs the reverse complement of the sequence. Otherwise it exits the loop
The best scenario is when a program suffers from frequent
page faults. In the situations when a kernel thread experiences a page fault,
another kernel thread can be switched in; something a single-threaded process
will not be capable of doing. Another best circumstance is when a program has
to wait for other systems events.