selection sort driver
reentrant lock example