Introduction to threads ( single and multi types)