Threads are semi-processes or low weight processes that have its own stack, and executes given piece of code. Unlike processes, the memory is shared with other threads thus can share global variables, same heap memory, and same set of file descriptors. Threads execute in parallel assuming system has several processors. Advantages of threads over processes: […]

Read More →