𝐏𝐫𝐨𝐜𝐞𝐬𝐬𝐞𝐬
We install a lot of different applications on are system. An application is a program that we can run on our system. For instance, we can run a web browser, a text editor, etc. Each of these applications is a program. However, each of these applications is a different program. When we install an application, it is installed as a file on our system. When we run the application, the operating system loads the application into memory and runs it. When we run an application, the operating system creates a process for the application.
Types of Processes
A process can be classified into the following types:
1. I/O bound process
2. CPU bound process
𝐓𝐡𝐫𝐞𝐚𝐝𝐬
Often, a process needs to perform multiple tasks at the same time. For example, a web browser needs to download a file and display a web page at the same time. Creating a new process for each task is expensive. This is because creating a new process requires a lot of resources.
Threads are used to solve this problem. Threads are used to perform multiple tasks within a process. This is done by sharing the same address space. This means that all threads in a process can access the same memory. This is different from processes where each process has its own address space.
#JavaScript #Python #TypScript #Node #React #aws #software #development #engineer #cloud #backend #frontend #fullstack #application #web #consistent #dsa #problemsolver Software Engineering JavaScript freeCodeCamp React Python MongoDB Web Development Modern Fullstack Back-End Web Development Amazon Web Services (AWS) Creative Problem Solving LeetCode Notion Node.js Database Design #delhi #mumbai #hyderabad #bengaluru #Eventloop #Sql #NoSql #MySql #Mongodb #databases #closures #java #processes #threads
𝘉𝘪𝘵𝘴 & 𝘉𝘳𝘪𝘭𝘭𝘪𝘢𝘯𝘤𝘦/𝘚𝘯𝘢𝘱𝘴𝘩𝘰𝘵 𝘈𝘳𝘵𝘪𝘤𝘭𝘦𝘴
IT Recruiter (Human Resource)
1mo#cfbr