added static scheduling policy
added static scheduling policy flag
fixed typo
Fixed #869: thread test failing
Further simplified bind