How threads are implemented in unix?
There are multiple ways to implement threads. An answer is beyond the scope of this site - I would refer you to the many textbooks on operating systems that explain this in detail.
The 'shell' is a user interface program that interfaces between a user of the system and the Operating System. It is the user interface.