Basic thread scenario

Create, Terminate, Yield, Get/Set Priority and get current thread ID -
demo.
Basic priority based scheduling.
No interrupt support.