Thread Libraries
- Thread library is a thread API (Application Programming Interface) which is a set of functions, methods and routine provided by operating system for creating, managing and coordination of the threads.
- Thread libraries may be implemented either in user space or kernel space library.
- If the thread library is implemented at the userspace then the code and information of thread library would be reside in user space, In this scenario invoking any function from thread library would be simple function call and can’t be a system call.
- But if the thread library is implemented at the kernelspace then the code and information of thread library would be reside in kernel space and supported by operating system, In this scenerio invoking any function from thread library would be system call to the kernel.
- The former API involves functions implemented solely within user space, with no kernel support. But latter involves system calls, and requires a kernel with thread library support as mentioned in last previous point. These libraries provide a tools to the programmer for efficient management, creation and fast execution of operations.
Thread Libraries
The Operating System is an interface between the user and hardware that enables the interaction of computer hardware and software or it can act as a bridge between the user and the application. It ensures that various software programs can run efficiently and interact with hardware as needed. Some Popular Operating Systems are Linux, Unix, Microsoft Windows, and so on. Without an operating system computer is useless.