wisemonkeys logo
FeedNotificationProfileManage Forms
FeedNotificationSearchSign in
wisemonkeys logo

Blogs

Why is it hard to design an Operating Systems ?

profile
Meet Darji
Jul 05, 2024
0 Likes
0 Discussions
116 Reads

Moore’s Law says that computer hardware improves by a factor of 100 every decade. Nobody has a law saying that operating systems improve by a factor of 100 every decade. Or even get better at all. In fact, a case can be made that some of them are worse in key respects (such as reliability) than UNIX Version 7 was back in the 1970s.

Why? Inertia and the desire for backward compatibility often get much of the blame, and the failure to adhere to good design principles is also a culprit. But there is more to it. Operating systems are fundamentally different in certain ways from small application programs you can download for $49. Let us look at eight of the issues that make designing an operating system much harder than designing an application program.

First, operating systems have become extremely large programs. No one person can sit down at a PC and dash off a serious operating system in a few months. Or even a few years. All current versions of UNIX contain millions of lines of code; Linux has hit 15 million, for example. Windows 8 is probably in the range of 50–100 million lines of code, depending on what you count (Vista was 70 million, but changes since then have both added code and removed it). No one person can understand a million lines of code, let alone 50 or 100 million. When you have a product that none of the designers can hope to fully understand, it should be no surprise that the results are often far from optimal.

Operating systems are not the most complex systems around. Aircraft carriers are far more complicated, for example, but they partition into isolated subsystems much better. The people designing the toilets on a aircraft carrier do not have to worry about the radar system. The two subsystems do not interact much. There are no known cases of a clogged toilet on an aircraft carrier causing the ship to start firing missiles. In an operating system, the file system often interacts with the memory system in unexpected and unforeseen ways.

Second, operating systems have to deal with concurrency. There are multiple users and multiple I/O devices all active at once. Managing concurrency is inherently much harder than managing a single sequential activity. Race conditions and deadlocks are just two of the problems that come up.

Third, operating systems have to deal with potentially hostile users—users who want to interfere with system operation or do things that they are forbidden from doing, such as stealing another user’s files. The operating system needs to take measures to prevent these users from behaving improperly. Word-processing programs and photo editors do not have this problem.

Fourth, despite the fact that not all users trust each other, many users do want to share some of their information and resources with selected other users. The operating system has to make this possible, but in such a way that malicious users cannot interfere. Again, application programs do not face anything like this challenge.

Fifth, operating systems live for a very long time. UNIX has been around for 40 years. Windows has been around for about 30 years and shows no signs of vanishing. Consequently, the designers have to think about how hardware and applications may change in the distant future and how they should prepare for it. Systems that are locked too closely into one particular vision of the world usually die off.

Sixth, operating system designers really do not have a good idea of how their systems will be used, so they need to provide for considerable generality. Neither UNIX nor Windows was designed with a Web browser or streaming HD video in mind, yet many computers running these systems do little else. Nobody tells a ship designer to build a ship without specifying whether they want a fishing vessel, a cruise ship, or a battleship. And even fewer change their minds after the product has arrived.

Seventh, modern operating systems are generally designed to be portable, meaning they hav e to run on multiple hardware platforms. They also have to support thousands of I/O devices, all of which are independently designed with no regard to one another. An example of where this diversity causes problems is the need for an operating system to run on both little-endian and big-endian machines. A second example was seen constantly under MS-DOS when users attempted to install, say, a sound card and a modem that used the same I/O ports or interrupt request lines. Few programs other than operating systems have to deal with sorting out problems caused by conflicting pieces of hardware.

Eighth, and last in our list, is the frequent need to be backward compatible with some previous operating system. That system may have restrictions on word lengths, file names, or other aspects that the designers now reg ard as obsolete, but are stuck with. It is like converting a factory to produce next year’s cars instead of this year’s cars, but while continuing to produce this year’s cars at full capacity


Comments ()


Sign in

Read Next

Virtual memory

Blog banner

Direct memory access (DMA)

Blog banner

Uniprocessor and Types

Blog banner

SQL Injection

Blog banner

Phishing

Blog banner

How Much Protein Do You Really Need Every Day?

Blog banner

DEVELOPMENTS LEADING TO MODERN OPERATING SYSTEMS

Blog banner

File management in os

Blog banner

Brilliant WhatsApp Features Upcoming in 2023

Blog banner

The Right way of cooking

Blog banner

Full Disk Encryption on Digital Forensics

Blog banner

Vaping vs. Chewing Gum: The Hidden ‘Stress Fix’ Destroying Sydney’s Teeth

Blog banner

Memory Management in an Operating System

Blog banner

Operating system evolution

Blog banner

Evolution of operating systems

Blog banner

Why Festivals Are the Best Classrooms for Young Minds?

Blog banner

WHAT IS TWITTER AND HOW DOES IT WORK

Blog banner

Emotional Intelligence in Children: Why It Is as Important as Academics

Blog banner

Data Visualization – Importance and tools (Tableau, Power BI)

Blog banner

OPERATING SYSTEM OBJECTIVES AND FAULT TOLERENCE.

Blog banner

Southern Turkey Earthquake: Causes and Consequences of a Tragic Natural Disaster

Blog banner

Service Validation and Testing during the Design Phase

Blog banner

What is a geographic information system (GIS)?

Blog banner

EdTech (Education Technology)

Blog banner

Blockchain technology: security risk and prevention

Blog banner

The House ??of Patola Designs: Traditional Weaves with a Modern Twist

Blog banner

Memory Management

Blog banner

Deadlock and Starvation

Blog banner

Survey of Which Movies Types people are Prefer to Watch in India.

Blog banner

The Future of Web Development in 2026: Trends Every Business Must Know

Blog banner

Eating Well With Meal Maharaj on Busy Workdays Without Cooking

Blog banner

What is OS Fingerprinting?

Blog banner

Virtual memory in Operating System

Blog banner

SECURITY VULNERABILITIES COUNTERMEASURES IN A SMART SHIP SYSTEM

Blog banner

Os(Computer security threats)

Blog banner

Hey Aryan here

Blog banner

1 Dentist in Maroubra, Sydney and her 10 obsessions

Blog banner

Save Girl Child

Blog banner

Is Your Password Complex Enough?

Blog banner

Data Security and Data Privacy in Data Science

Blog banner

Impact of social media on the human life

Blog banner

Sensory Play for Toddlers: Boosting Curiosity Through Touch, Sound, and Colour

Blog banner