Half-finished thread scheduling.
Merge pull request #3 from DigiTechs/master

Half-finished thread scheduling.