Threads are lightweight processes that divide a main control thread into multiple threads, and each control / thread will run independently. The activity of the process in the system is represented by threads. A process with multiple threads is called multi-threaded. Each thread has its own thread identifier (Data Type Integer), register, program counter, stack, error number. Themes can interact using shared memory in a single process. There are various advantages to using threads to manage and support application subtasks. When we use threads, the less system resources are used to switch context and increase application throughput. Themes also simplify the structure of the program. There is no special mechanism for communication between tasks. Themes also have some disadvantages,for example, threads cannot be reused as they are process dependent and cannot be separated from the process. Themes are not isolated because they do not have their own address space. An error caused by a thread can kill the entire process or program, because this error affects the entire memory space of all threads used in this process or program. Due to shared resources by threads in a process, it can also affect the entire process or program when a resource is damaged by a thread. For simultaneous read and write access to the memory stream, synchronization is required. Process data can easily damage a thread through a data race, because all threads with a process have write access to the same piece of data.since they are process dependent and cannot be separated from the process. Themes are not isolated because they do not have their own address space. An error caused by a thread can kill the entire process or program, because this error affects the entire memory space of all threads used in this process or program. Due to shared resources by threads in a process, it can also affect the entire process or program when a resource is damaged by a thread. For simultaneous read and write access to the memory stream, synchronization is required. Process data can easily damage a thread through a data race, because all threads with a process have write access to the same piece of data.since they are process dependent and cannot be separated from the process. Themes are not isolated because they do not have their own address space. An error caused by a thread can kill the entire process or program, because this error affects the entire memory space of all threads used in this process or program. Due to shared resources by threads in a process, it can also affect the entire process or program when a resource is damaged by a thread. For simultaneous read and write access to the memory stream, synchronization is required. Process data can easily damage a thread through a data race, because all threads with a process have write access to the same piece of data.can kill the whole process or program, because this error affects the entire memory space of all threads used in this process or program. Due to shared resources by threads in a process, it can also affect the entire process or program when a resource is damaged by a thread. For simultaneous read and write access to the memory stream, synchronization is required. Process data can easily damage a thread through a data race, because all threads with a process have write access to the same piece of data.can kill the whole process or program, because this error affects the entire memory space of all threads used in this process or program. Due to shared resources by threads in a process, it can also affect the entire process or program when a resource is damaged by a thread. For simultaneous read and write access to the memory stream, synchronization is required. Process data can easily damage a thread through a data race, because all threads with a process have write access to the same piece of data.For simultaneous read and write access to the memory stream, synchronization is required. Process data can easily damage a thread through a data race, because all threads with a process have write access to the same piece of data.For simultaneous read and write access to the memory stream, synchronization is required. Process data can easily damage a thread through a data race, because all threads with a process have write access to the same piece of data.