The Wayback Machine - https://web.archive.org/web/20241008213217/https://www.geeksforgeeks.org/5-operating-system-concepts-you-should-know-as-a-developer/
Open In App

5 Operating System Concepts You Should Know As a Developer

Last Updated : 27 Jun, 2021
Summarize
Comments
Improve
Suggest changes
Like Article
Like
Save
Share
Report
News Follow

Being a developer you might have focused your skills on problem-solving and data structure. Well, no doubt this is one of the most essential skills. Apart from that have you ever tried to know what else is more important? Consider a scenario that you’re executing a code, but your program runs too slowly. You check your code, and you find that there is nothing wrong with your code. What could be the reason behind this?

5-Operating-System-Concepts-You-Should-Know-As-a-Developer

Well, one of the reasons could be your operating system. Now if you need to debug your program then how would you do that if you don’t know how your operating system works. Possibilities are there that you’re accessing too many files, you’re running out of memory or swap is in high usage. To resolve this issue surely you need to know about the swap or I/O blocking. 

How will you communicate with your machine? Will you prefer locally, or you will do that on the internet? Have you ever tried to know that why some programmers prefer one OS over another?

From all the above conversations, you might have understood that why it is important to learn operating systems. Being a developer we should understand the importance of the operating systems. Today in this blog, we are going to discuss some important concepts of the operating systems that will help in your job as a developer. 

1. Process and Process Management

The process is basically defined as a program in execution. The process should be executed sequentially. When you write a computer program in a text file and when you execute this program it becomes a process in your system. This process performs all the tasks mentioned in the program. A process is divided mainly into four sections: Stack, heap, text, and data.

  • Stack: Stack is responsible for storing temporary data such as functions/method parameters. It returns address and local variables. 
  • Heap: Heap allocates the memory to a process dynamically during its runtime. 
  • Text: Text includes the current activity represented by the values of the program counter and data stored in the processor’s register.
  • Data: It contains the global and static variables.

A process passes through mainly with five different states… Start, Ready, Running, Waiting, Terminated, or Exit.

2. Concept of Threads 

You can define thread as a flow of execution through the process code. The thread keep the track of all the instructions that need to be executed next in the program counter. Also, the thread contains system registers that hold the current working variables. In the thread, the stack contains the execution history.

Thread can share code segment, data segment, and open files with its peer thread. When a code segment is altered by one thread, all the other threads see that. Thread is also called a lightweight process. The performance of the application can be improved through parallelism.

One thread belongs to exactly one process and none of the thread can exist outside a process. Threads are generally used in implementing web servers and network servers. Mainly there are two kinds of thread…

User Level Thread: In this level of thread, the thread management kernel is not aware of the existence of threads. The Thread library also maintains the code to create and destroy the thread. It also contains the code for passing messages and data between threads. Code is also maintained for scheduling thread execution and for restoring thread context. 

Kernel Level Thread: Thread-level management is done by the kernel. In the application area, you won’t find the thread management code. It is supported directly by the operating system. 

The kernel also maintains the context information for the individual threads and for the processes as a whole. Scheduling is also done on a thread basis. The kernel is responsible for creating, scheduling, and managing the kernel space. 

3. Scheduling

In scheduling, the process manager takes the responsibility to remove the running process from the CPU, also it chooses another process based on a specific strategy. For multiprogramming operating system scheduling is the essential part. At a time more than one process can be loaded into the executable memory. The process shares the CPU using time multiplexing once it gets loaded. 

In process scheduling queues operating system maintains all the process control blocks. A separate queue is maintained by the OS for each of the process states. Process control blocks of all the processes in the same execution state are maintained in the same queue. 

Mainly your operating system maintains the following important process scheduling queue:

  • Job queue: It takes the responsibility to keep all the processes in the system
  • Ready queue: In the main memory all the processes reside which are ready and waiting to execute.  
  • Device queues: This queue stores the processes which are blocked due to the unavailability of an I/O device 

4. Memory Management

Memory management refers to the functionality of an operating system that handles and manages the primary memory. Processes move back and forth between the main memory and the disk during the execution. 

Memory locations get tracked by memory management. Every time it checks how much memory is allocated to processes. It also decides which process gets memory at what time. Also, it updates the status whenever a memory gets freed up or unallocated. The operating system maps the logical addresses to physical addresses at the time of memory allocation. Mainly there are three types of addresses used in a program…

  • Symbolic addresses: It is used in the source code. The variable names, constants, and instructions labels are the basic elements of the symbolic address space. 
  • Relative addresses: During compilation, the compiler converts symbolic addresses into relative addresses. 
  • Physical addresses: The loader takes the responsibility to generate these addresses at the time when the program gets loaded into the main memory.

5. Inter-Process Communication

In an operating system, processes get divided into two types: Independent and Cooperating. Independent processes don’t get affected by the execution of other processes. A cooperating process gets affected by the other executing process. 

Independent processes execute efficiently and in these situations, their cooperative nature is utilized for increasing computational speed, convenience, and modularity. In this mechanism, processes are allowed to communicate with each other. Communication is seen as a method of cooperation between them. 



Similar Reads

7 JavaScript Concepts That Every Web Developer Should Know
JavaScript is Everywhere. Millions of web pages are built on JavaScript and it’s not going anywhere at least for now. On one side HTML and CSS give styling to the web pages but on the other side, it's the magic of JavaScript that makes your web page alive. Today this language is not just limited to your web browser. You can also use it for server-s
10 min read
13 Things You Should Know Before You Enter In Web Development
Every beginner starts their journey in web development learning frontend part, backend part, and some tools which are important to build the web project. Building your first project on your own after so many struggles is an exciting feeling for the beginners. You start having a lot of expectations from your job but when you enter the industry you f
7 min read
10 Secret AI Websites You Should Know (But No One Told You About)
If you're looking around you, people now started using AI websites and apps. It's true that the AI era has started and boomed since the launch of ChatGPT. So, are you using AI to boost your performance? If not, how does it feel living under the rock? With so many great things on the table, we often miss out on the best ones. Well, that’s the same c
10 min read
Top 10 Advance Python Concepts That You Must Know
Python is a high-level, object-oriented programming language that has recently been picked up by a lot of students as well as professionals due to its versatility, dynamic nature, robustness, and also because it is easy to learn. Not only this, it is now the second most loved and preferred language after JavaScript and can be used in almost all tec
6 min read
10 Things You Should Know As a Web Developer
Writing a thousand lines of code and turning that into a website is one of the most creative and complicated things for web developers. If you get excited seeing a lot of beautiful websites and thinking to try your hands on them then we need to open your eyes by telling you some important things that you should know as a web developer. Creating a w
8 min read
Top 10 AR Developer Tools Every Developer Should Know
The booming Augmented Reality (AR) world involves the creation of immersive digital experiences that mix up with physical reality. As a developer, it is upon you to unlock and utilize this potential through creating inventive AR applications. However, with numerous AR development tools available; selecting one may become overwhelming. This in-depth
9 min read
10 Python In-Built Functions You Should Know
Python is one of the most lucrative programming languages. According to research, there were approximately 10 million Python developers in 2020 worldwide and the count is increasing day by day. It provides ease in building a plethora of applications, web development processes, and a lot more. When it comes to making a program short and clear, we us
5 min read
How Much Python Should You know To Learn Django?
How much python is required to learn Django?? This question comes to the mind of every beginner and experienced developer who wants to learn Django and build an application in it. No doubt most developers or beginner wants to learn any framework or library as soon as possible. We all want to know the minimum prerequisite that is needed to learn any
6 min read
Things You Should Know About React Hooks
React...We all know the importance of this library in the tech industry. Most of the applications are switching to React because of its advantages and features. There are many features of React. React hooks is one of them. React hooks was first released in October 2018. In React a lot of developers use the lifecycle method which is nothing, but jus
4 min read
Top 10 Mobile App Development Trends You Should Know
Undoubtedly, mobile apps have been impacting our lives daily. The mobile app development market has been spreading enormously. So, every person must be acquainted with the trends, including the modification in mobile app developments. Hanging around with the updates is the most challenging part of achievements. Since the time mobiles and smartphone
6 min read
5 Myths About Artificial Intelligence You Should Know
There have been significant changes brought about by the introduction of computers and technology. There are numerous technologies present today and among those Artificial Intelligence is probably the center of attention. For both good and bad reasons AI is today a hot topic. AI is a progressive step to technological advancements. Among the many be
6 min read
6 Common Cryptocurrency Scams You Should Know
The cryptocurrency industry has a worth of more than a billion-dollar. According to the analysis of MarketsandMarkets, the 2021 cryptocurrency market size is around 1.6 Billion Dollars which will exceed 2 billion by 2026. Such a growing market is attracting a lot of investors, entrepreneurs, and business owners too to invest in various cryptocurren
6 min read
7 Challenges in Test Automation You Should Know
Today, test automation has become a new trend in the tech industry when it comes to efficiency and quickness. Undoubtedly it helps in achieving milestones more quickly and on the other hand, also boosts productivity. In fact, most IT firms are now shifting towards automation and it’s good to take adopt new trends. But, as we all know, anything can
6 min read
7 Benefits of Microsoft Power BI You Should Know
In today’s data-driven world, the success of any business relies heavily on a huge amount of data. These data are highly important for the efficiency, growth, and success of a business or an organization. But monitoring, estimating, and analyzing these data, is something that needs to be constantly performed. In simple words, Business Intelligence
5 min read
10 Most Common SQL Queries That You Should Know
To handle huge amounts of data, companies rely on SQL which stands for Structured Query Language which is used to communicate with the database. It provides a path through which we can access the database without going through complicated procedures. All the operations you can do follows the CRUD acronym. CRUD stands for the four most important ope
5 min read
10 Mac OS Keyboard Shortcuts That You Should Know
Sometimes a small shortcut can be a life savior. Shortcuts improve efficiency and speed. There are multiple mac keyboard shortcuts which are effective and unique. Also, mac devices have very different builds and settings than Windows OS. Thus a new mac user can find it difficult to adapt to those changes. Here are the 10 mac keyboard shortcuts ever
3 min read
50 Common Ports You Should Know
Port number is a 16-bit numerical value that ranges from 0 to 65535. Well-known port (0-1023), registered port (1024-49151), and dynamic port is three types of port number space. (49152-65535). These ports can be opened and used by software applications and operating system services to send and receive data over networks (LAN or WAN) that employ ce
5 min read
10 C++ Programming Tricks That You Should Know
C++ Programming Language is a powerful, versatile, and compiled language, which means the source code is converted into machine language before the execution. In order to make your code as efficient and effective as possible, you should be aware of the following tricks and techniques. Hence, it's better to know some C++ tricks and tips to reduce a
10 min read
10 Web Development and Web Design Facts That You Should Know
Web Development has grabbed a lot of attention in today's date. But the question arises, why has it gained such a massive audience in the last decade. So Here's the answer: Web development is the basic building and maintenance of websites; it’s the whole procedure that happens to make a website look great, responsive, work smooth, and performing we
6 min read
Top 10 Data Science Companies You Should Know in 2024
In today's digital world, businesses are constantly generating massive amounts of data. This is where data science companies come in – they help organizations organize and analyze this data to extract valuable insights. The field of data science is booming, with many top data science companies offering exciting job opportunities for skilled data sc
13 min read
Top 10 Java Frameworks You Should Know in 2024
In today's digital world, web applications play a crucial role across various industries. Building robust and scalable applications often requires choosing the right development tools. Among these tools, Java frameworks stand out for their efficiency and reliability, making them a popular choice for enterprise-level development. This article explor
8 min read
Top Selenium Frameworks You Should Know
As you must be well aware of the fact that test automation is a process of executing test cases by using certain automation tools. The reason behind introducing automation was to speed up the process and increase efficiency and that's what tools like Selenium are performing in the testing industry. Today Selenium has been one of the most essential
7 min read
15 Best CI/CD Tools That You Should Know
Continuous Integration and Continuous Delivery (CI/CD) is modern-day practices to continuously improve the software by adding new feature and for that we have to change the existing files and deploy them. Doing it manually every time may consume a lot of developer's time, so to make the process more simple and reliable developers use CI/CD tools th
11 min read
GPT 4 vs GPT 3: Top Differences That You Should Know in 2024
The AI chatbot is completely changed by ChatGPT. It has seized the AI market and established a powerful foothold there. Now that the ChatGPT has figured things out, it is prepared to advance with new plans and advancements. A new version of ChatGPT was thus released. An artificial intelligence model called GPT-4 has begun to be released by OpenAI a
6 min read
ExpressJS vs NestJS - 7 Differences That You Should Know
For building large-scale applications, people look for lightweight frameworks. For that reason, NestJS is taking command over ExpressJS. No doubt ExpressJS has gained popularity in the last few years among developers, NestJS is on the way and will pave the way to greater use in upcoming years. Now, when you don't know about ExpressJS and NestJS, no
8 min read
Kanban vs. Scrum : Top Differences You Should Know
In the world of Agile project management, there are two popular methodologies, Kanban and Scrum, have gained significant attention. Each offers unique approaches to organizing and executing tasks, serving different project requirements. To make informed decisions and adopt the most suitable method for their project it is important to understand the
5 min read
7 Things You Should Know Before Switching To Linux
If you are reading this blog, you are most probably using Windows or Mac and looking to switch over. Linux is an excellent alternative to Windows or Mac, but sometimes it can confuse you at first. Linux has grown so much in recent years that you can now install it without even using a terminal window. There are multiple Linux distributions, such as
6 min read
ChatGPT vs Google BARD - Top Differences That You Should Know
'Google BARD vs. Chat GPT' is currently the most talked-about topic, rather than focusing on who will win, let's examine how each of these topics excels in its niche and recognize that we don't need to pick a winner. Instead, we can use each of these topics as appropriate depending on the situation. Users have been trying to compare the two AIs aga
8 min read
Top 12 JavaScript Concepts to Know Before Learning React
React.js, an open-source and free library, is a powerful tool for building front-end interfaces for websites. It’s not a framework or language, but a library that allows developers to create user interfaces (UI) that are component-based. The use of JavaScript in React is fundamental, and having a solid understanding of JavaScript concepts can make
12 min read
How Much System Design Should A Software Engineer Know?
In software engineering, mastering system design has become critical. From small-scale applications to complex and distributed applications, knowing how to design robust, scalable, and easy-to-maintain software is very important. With this article, we will be answering the most common question asked by software engineers "How much system design sho
10 min read
Practice Tags :