Multithreading process

i dont get that multithreading program that example of producer consumer program. how output we got ?

In multi threading programming we basically run multiple programs at the same time .
In normal programming all the programs are run one at a time , but in multi-threading we can run multiple programs at the same time .