Skip to main content

First code used to Develope Operating system

 The first operating system (OS) code can be traced back to the 1950s, specifically to IBM's General Motors Operating System (GMOS), which was developed in 1956 for the IBM 704 mainframe. However, it was not written in modern programming languages like C or Python but in assembly language, as higher-level programming languages were not yet common.

Assembly Example (Simplified)

START:
    LOAD JOB_QUEUE ; Load the queue of tasks to be processed
    CHECK_MEMORY ; Verify memory allocation for the job
    IF MEMORY_FULL, HALT ; Stop if insufficient memory
    LOAD JOB ; Load the next job into the CPU
    EXECUTE ; Execute the job
    STORE RESULTS ; Save the results back to memory
    RETURN_TO_QUEUE ; Return to the job queue for the next task
    LOOP START ; Repeat the process

Pseudocode for the First OS (GMOS-style)

START_OS:
    Initialize hardware resources
    Initialize memory manager
    Load job queue from input devices (e.g., punched cards)
    Display "System Ready"

MAIN_LOOP:
    While (job queue is not empty):
        Load next job from the job queue
        Check job requirements:
            If (insufficient memory or CPU resources):
                Move job to waiting queue
                Continue to next job
        Allocate memory for the job
        Load job into CPU
        Execute job:
            While (job is not complete):
                Perform task
                Handle I/O operations
                Check for system interrupts
        Store job results to output device
        Deallocate memory for the job
    End While

SHUTDOWN_OS:
    Display "No more jobs in the queue"
    Release all hardware resources
    Power down the system

First Program (Pseudocode)

START_PROGRAM:
    Display "Job Started"

    Load input data from the device (e.g., punched cards)
    Perform arithmetic operations (e.g., Add two numbers)
        A = Input1
        B = Input2
        RESULT = A + B
    Save the result to the output device (e.g., tape or printer)

    Display "Job Completed"
    Return to OS for the next task


Comments

Popular posts from this blog

GPT (GENERATIVE PRETRAINED TRANSFORMER)

 16/12/2024    GPT (GENERATIVE PRETRAINED TRANSFORMER) WHAT IS GPT (GENERATIVE PRETRAINED TRANSFORMER)? GENERATIVE PRETRAINED TRANSFORMERS (GPTS) ARE A FAMILY OF LARGE LANGUAGE MODELS (LLMS) BASED ON A TRANSFORMER DEEP LEARNING ARCHITECTURE. DEVELOPED BY OPENAI, THESE FOUNDATION MODELS POWER CHATGPT AND OTHER GENERATIVE AI APPLICATIONS CAPABLE OF SIMULATING HUMAN-CREATED OUTPUT. WHAT ARE LLMS? LARGE LANGUAGE MODELS (LLMS) ARE A CATEGORY OF FOUNDATION MODELS TRAINED ON IMMENSE AMOUNTS OF DATA MAKING THEM CAPABLE OF UNDERSTANDING AND GENERATING NATURAL LANGUAGE AND OTHER TYPES OF CONTENT TO PERFORM A WIDE RANGE OF TASKS. LLMS HAVE BECOME A HOUSEHOLD NAME THANKS TO THE ROLE THEY HAVE PLAYED IN BRINGING GENERATIVE AI TO THE FOREFRONT OF THE PUBLIC INTEREST, AS WELL AS THE POINT ON WHICH ORGANIZATIONS ARE FOCUSING TO ADOPT ARTIFICIAL INTELLIGENCE ACROSS NUMEROUS BUSINESS FUNCTIONS AND USE CASES GPT USE CASES THE FLEXIBILITY OF TRANSFORMER MODELS SUCH AS GPT LENDS THEM TO A WID...

Booting process

  What is Booting in Computing? Have you ever wondered what happens when you switch on your computer? When a computer is in a powered-off state, its operating system (OS) resides in secondary storage, such as a hard disk or SSD. For the computer to function, the OS must be loaded into the main memory or RAM. The process of loading the OS into memory when a computer starts is known as booting. In this blog, we’ll explore the booting process and its different types. The Booting Process Explained When a computer starts, it relies on a mechanism to transfer the operating system from secondary storage to the system’s main memory (RAM). This essential process enables the computer to become operational and ready for use. Types of Booting Booting can be classified into two main types, depending on how the system is started: 1. Cold Booting (Hard Booting ) Cold booting occurs when a computer is powered on from a completely switched-off state. In this process, the system performs a Power-On ...