TEchMyEducation

easy tech learning...

Showing posts with label Operating system. Show all posts

Distributed System and its advantage disadvantage

 What is Distributed System

"In a Distributed system, multiple Autonomous independent computers are connected together and used as a single system. It is not necessary that all the computers are connected in one place. It can also be connected in different places if all the computers are in the same place. Connected in place, it will be called LAN Distributed System and if all the computers are connected in a different place then it will be called WAN Distributed System. "

Distributed System requires three things

  • Network
  • Distributed Application
  • Middleware Service

The distributed system is made up of a collection of Autonomous computers. These systems are connected through a network and Distribution Middleware. Which enables computers to coordinate with their activities. And shares system resources. So that users get the system as a Single Integrating Computing Facility.

A distributed computer system consists of a number of software components. Which are on multiple computers, but run as a single system. Computers that are in a distributed system can be physically close to each other and are connected through a Local Network. Or they are connected through Wide Area Network. A distributed system may consist of several configurations in the form of mainframes, personal computers, workstations, etc. The goal of Distributed Computing is to create a network that acts like a single computer.

Distributed System is based on the Client-Server Architecture system -

Client-server architecture is a common way of running software on a distributed system is to separate the functions into two parts of the Clients and Servers. A client is a program that uses those services. Which are made available by other programs. Those who provide Programs service. They are called Servers. The client requests a request for a service and the server performs this request.

The general design of the Clients and Server System uses three tiers-

1. A client who interacts with the user.

2. An application server that holds the business logic of the application.

3. Resource manager that stores data.

Advantages and Disadvantages of Distributed System

Cost

Hardware used for Computers Component has a low cost depending on performance.

1. Performance

The performance layer is good by using the combined processing and storage capacity of many Nodes. That is, the collection of processes gives better performance than centralized computers.

2. Reliability

Users can change this at the hardware fault. That is, if some machine becomes Crash, System Survive can do it.

3. Distribution

Some applications such as E-Mail and the Web are distributed naturally.

4. Sharing of data/resources

It is necessary to prepare data in many applications. Such as backing reservation system etc.

Disadvantages of Distributed System

1. Software Complexity

Developing distributed software is complex and confusing as compared to traditional software, so it is more expensive to develop it. And there is a lot of Chance of gals in it.

2. Network Problems

Many problems arise due to network infrastructure, due to which there is the loss of message, overloading, etc.

3. Security

The Distribute System consists of several components. Sharing data between these components generates the problem of data security.

4. Design Issue of Distributed System -

Following are its major Design Issue, which is specifically generated from the Distributed Nature of the application.

1. Transparency

2. Communication

3. Performance and Scalability

4. Heterogeneity

5. Openness

6. Reliability and Fault Tolerance

7.Security

1. Transparency - Under this, the following points are considered

(a) Local and remote resources are accessed using Identical Operations.

(b) Users cannot tell where the hardware and software resources are located, these resources are CPU Files Database, etc. The name of the resource should not encode the location of the resource. (c) Resources should be independent of moving from one location to another without changing their name.

2. The components of the communication-distributed system should be communicated in order to interact. These indicate support on two occasions.

(a) Networking Infrastructure.

(b) Appropriate Communication Primitives and Modems and their Implementation.

3.Performance and Scalability Performance and Scalability - The following major thumb impressions affect a distributed system performance

(a) Performance of individual workstations.

(b) Speed ​​of Communication Infrastructure.

4. Heterogeneity-distributed applications are generally heterogeneous at the following points

(a) Different hardware - Mainframe, Workstations, PCS, Servers, etc.

(b) Different software - Unix, MS Windows IBM OS / 2, Real-time OS, etc.

5. Openness- An important feature of distributed systems is Openness and Flexibility. The following points are considered under this

(a) Each service should be accessed equally by each client.

(b) It is easier to install and debug and implement new services.

6. Reliability and Fault Tolerance- The main advantage of creating a distributed system is to improve reliability.

Reliability- If the machines go bad then the system should work with the number of resources changed. Data should not be lost on the system and copies should be stored correctly on different servers.

7. Security- The following points fall under the security of information resources

(a) Restricting access to the unauthorized person.

(b) Protection against change and corruption.


compiler vs interpreter

compiler vs interpreter

Difference between Compiler and Interpreter

Programmers typically write computer programs using a high-level language. A high-level language is a language that a user can understand. The language that the user understands is called source code. However, the computer does not understand high-level language. The computer only understands 0 and 1 binary numbers called machine codes.

To convert source code and high-level language into machine code, both compiler or interpreter are used. But there are differences between how the compiler or interpreter works. The compiler is a translator that converts source code (high-level language) into machine language. Whereas Interpreter is a program that mimics the execution of a program written in source code. The main difference between a compiler and an interpreter is that the compiler translates the entire program at once and tells whatever error occurs while the interpreter translates one line and if there is an error in a line, as long as that error is not fixed, it does not proceed.

What is Compiler?

The compiler is a translator that converts source code (high-level language) into machine language. It translates the source code into machine code to create an executable file. 

The programmer can execute this object file after copying it to another computer. In other words, after the program is compiled it becomes an independently executable file that does not require a compiler to execute.

What is an Interpreter?

An interpreter is a program that performs the task of converting programs written in a high-level language into machine language. The interpreter translates each instruction into machine language alternately. It does not translate all the instruction of high-level language programs into machine language simultaneously.

What is Assembler

Assembler is a program that translates assembly language into machine language & nbsp; Is Apart from this, it translates high-level language into machine language. The assembler can convert mnemonic code such as ADD, NOV, SUB, etc. into binary code.

Difference between compiler and interpreter

compiler vs interpreter

#CompilerInterpreter
1.Compiler scans the whole program in one go.Translates program one statement at a time.
2.As it scans the whole code in one go, the errors (if any) are shown at the end together.it scans code one line at a time, and errors are shown line by line.
3.Main advantage of compilers is it’s execution time.Interpreters being slow in executing the object code, so it is less preferred.
4.It converts the source code into object code.it scans it line by line
5



6



7


8
It does not require source code for later execution.

If there is an error in the syntax of the program the compiler tells the error later.

Intermediate object code is generated in it so memory is used in it.

Debugging is not easy 

It requires source code for later execution.


The interpreter translates each line and if an error is present in a line, it does not proceed until the error is corrected.

It does not generate any intermediate object code, so it uses less memory.

It is easy to debug

Eg.C, C++, C# etc.Python, Ruby, Perl, SNOBOL, MATLAB, etc.


A significant difference between compiler and interpreter 

  • The compiler translates the entire program, but the interpreter translates the program with a single line.
  • The compiler is comparatively faster than the interpreter because the compiler can translate the entire program at once while the interpreter compiles each line of code one after the other.
  • The compiler requires more memory than the interpreter due to the generation of object code.
  • The compiler shows all the errors at once while the interpreter translates one line and shows the error.
  • When an error occurs in the program in the compiler, it stops the program and re-translates the entire program after correcting the error. In contrast, the interpreter translates a line and if an error occurs, it stops its translation and translates only after removing the error.
  • compiler process is a two-step process in which the source code is first translated to the target program and then executed. Whereas Interpreter, it processes a step in which the source code is compiled and executed at the same time.
  • The compiler is used in programming languages ​​such as C, C ++, C #, Scala, etc. While Interpreter is used in PHP, Ruby, Python, etc. languages.

References:
http://en.wikipedia.org/wiki/Interpreter_%28computing%29
http://en.wikipedia.org/wiki/Compiler

TechMyEducation

#difference between compiler and interpreter

What is Deadlock? conditions of deadlock, deadlock prevention, deadlock avoidance,deadlock detection, disadvantages of deadlock

What is Deadlock? conditions of deadlock, deadlock prevention, deadlock avoidance,deadlock detection, disadvantages of deadlock

Hello friends! Today we will read about Deadlock in (what is the deadlock in the operating system?) In this post and will also see its conditions. Read it completely. So let's start: -

Deadlock
Deadlock is a condition in which two or more processes fight or require for only one resource, due to which no one is able to access the resource.

In other words, " Deadlock condition occurs when two or more resources is requiring a resource to complete their process execution but that require resources is in use by another process by which the execution of process wont be completed ".

It is a situation in the operating system in which one process  goes to waiting state because the resource is held by another process.

For example suppose there are two friends who wants to ride bike due to which both are fighting.One has a bike key and the other has money for petrol.
So in this condition neither of the two friends are able to ride bike and neither of them is ready for cooperation.This is called deadlock.

Fig: -deadlock

In picture we have two processes x1 and x2 and two resources Rk1 and k2.k1 is allocated to process x1, and k2 is allocated to process x2. But x1 needs k2 to complete the process so it requests k2, but k2 is already allocated with x2.

Same as process x2 requires k1 to complete its execution, but k1 is already allocated with x1.
Both x1 and x2 will always wait for each other's resources. This is called DEADLOCK.

Conditions of Deadlock

Deadlock has four conditions, which are as follows: 

  • mutual exclusion
  • hold & wait
  • no preemption
  • circular wait
1: - Mutual exclusion - In this case, there is one such resource which cannot be shared between processes.

In this, only one process can use the resource at a time. That is, no two processes can use one resource at a time.

2: - Hold & wait - In this, the process keeps holding one resource while waiting for another resource.

3: - No preemption - A resource which is allocated for a process cannot be forcibly allocated to another process. Process releases the resource on its own.

4: - Circular wait - In this, every process waits for a resource which is held by another process and all the processes wait for resources in the form of a circle. Therefore it is called circular wait.

Deadlock Prevention - Stop deadlock

To prevent deadlock, we have to prevent any one of the four conditions above the deadlock from happening. Only then can we stop the deadlock from happening.

Mutual exclusion - If we can share a resource, then we can prevent mutual exclusion from happening. But we have many resources which cannot be shared such as - tape driver, printer etc. Because of this we cannot always prevent deadlock by mutual exclusion.

Hold & Wait - If we allocate the resource before the execution of the process, we can prevent the condition of hold and wait from happening. But its disadvantage is that it reduces the utilization of the device very much.

No preemption - We can prevent this condition from happening by releasing a resource held by a process.

Circular wait - To prevent this condition, we can allocate resources in decreasing or increasing order of the process.

Deadlock avoidance -

Deadlock prevention algorithm is much less effective as it reduces the utilization of the device and the throughput of the system. But we can avoid deadlock.

To avoid the deadlock, we use the bank penalty algorithm.

Deadlock Detection

The os can detect deadlocks using a resource scheduler. Resource scheduler helps to track the resources allocated to all the processes of the operating system. So whenever a deadlock occurs, it is solved using algorithms.

Disadvantage of Deadlock

Its disadvantages are as follows: -

This causes delays in the execution of the process.
In this, the process should know what resource it will need in the future.
Preemption occurs more often than necessary.
Benefits of Deadlock -
Its benefits are as follows: -

This situation is good for processes that perform only one task.
deadlock avoidance requires no preemption.
references: -

https://www.javatpoint.com/os-deadlocks-introduction
https://www.geeksforgeeks.org/introduction-of-deadlock-in-operating-system/

Request: - If you liked this post, then share it with your friends and if you know anything more about deadlock.Tell us through the comments.

I keep bringing you fresh new notes and articles. If you have any suggestion or have any question related to any subject, then you can also tell it by commenting below. I will put it in 1-2 days. Thanks.

Input devices of computer

Input devices of computer




Input Devices of Computer
Input devices are devices through which we can make our data or instructions input in the computer. Input devices facilitate connectivity between computers and humans. There are many Input Devices in the computer. These devices direct the computer's brain to do what? Input Device is available in many forms and all have specific purposes. For typing, we have a keyboard, which sorts our instructions.

“Input Device is the device that directs our instructions or commands to the computer's brain, the CPU. (C.P.U.). "

There are several types of Input Device which are as follows -


  1. Keyboard
  2. Mouse
  3. Joystick
  4. Trackball
  5. Light pen
  6. Touch screen
  7. Digital camera
  8. Scanner
  9. Digitizer Tablet
  10. Bar Code Reader
  11. OMR
  12. OCR
  13. MICR


1. Keyboard
A keyboard is peripheral to a computer, which is partly like a keyboard's typewriter. The keyboard is designed to input text and characters. Physically, computer keyboards are rectangular. It contains about 108 Keys. The keyboard has many types of keys (Alphabet), Number, Number, Symbol, Function Key, Arrow Key, and some special Keys as well. Are


We can divide its keys into six parts based on the structure of the keyboard -

Alphanumeric Keys
Numeric Keypad
Function Keys
Special Purpose Keys
Modifier Keys
Curser Keys

2.  Mouse
At present, the mouse is the most popular Pointer Device, which is used to create images or graphics, as well as to click on a button or menu. With this help, we can use our PC without using the keyboard. Can control

The mouse has two or three buttons, with the help of which instructions are given to the computer. The pointer moves on the screen when the mouse is moved. There is a rubber ball (boll) on the underside of the mouse. The ball rotates when the mouse is moved on a flat surface.

Mouse functions

  • Clicking
  • Double Clicking
  • Right Clicking
  • Dragging
  • Scrolling


Mouse type
There are usually three types of mice.

Mechanical Mouse
Optical Mouse
Cordless Mouse

3. Joystick
This device is an input device used to play video games, it is often used by children to play games on the computer. Because this is an easy way to teach the computer to children. Although all computer games can be played through the keyboard, some games are played at a fast pace, children do not feel comfortable in those games, so a joystick is used.
4. Trackball
The track ballon is a pointing input device. Which acts like a mouse. It has a raised ball and some buttons. Normally, while holding, you have your thumb on the ball and your fingers are on its button. To move the pointer on the screen, the ball with the thumb rotates the ball, the trackball is not required to rotate like a mouse, so it occupies relatively less space. It is used in Laptop, Mobile and Remold.

5. Light Pen
Light pen is used to make a picture or graphics on a computer screen. A light pen has a device like a light-sensitive pen. Therefore, light pens are used to select objects. Any graphics made with the help of a light pen can be stored on the computer and can be improved as needed.

6. Touch Screen
Touch Screen is an Input Device. It has a type of display. With the help of which a user selects a menu or an object on the screen by positioning his or her fingers due to a pointing device. It can be easily used even if a user does not have much knowledge of computer. Touch screen use nowadays railway station, airport, hospital, shopping mall, ATM It has started happening in the beginning.
7. Bar code reader
A bar code reader is used to read the bar code printed on a product over a product that is used by the bar code reader and the price of the product and other related information can be obtained.
8. Scanner
Scanner is an Input Device. It directly inputs the shape or written information on a page in the computer into the computer. Its main advantage is that the user does not have to type the information.


9. Omr (OMR)
Omr (OMR) or Optical Mark Reader is a device that checks the presence and absence of a pencil or pen symbol on a paper in which the highlighted paper is highlighted and the reflected light is tested. Where the sign is present, the intensity of the reflected light will be less than that part of the paper. Omr (OMR) is used to check the answer-book of an exam. These exam papers have optional questions.
10. OCR (OCR)
Optical Character Recognition or OCR is one such technique. Which is used to read a particular type of symbol, letter, or number, these characters can be read through the light source. The OCR equipment reads the characters printed from typewriters, the character of the cash register and the character of the credit card. OCR fonts are stored in the computer. Whom OCR (OCR) is called standard.

MICR
Magnetic Ink Character Recognition is widely used in banking, where people have to work with large numbers of checks. In short, where does it go to MICR? MICR is used to read characters printed with Magnetic Ink. This machine is fast and automatic as well as the chances of making mistakes in it are absolutely nil.

Simple summary


  1. Input devices are devices by which we can input our data or instructions into a computer.
  2. Input devices facilitate connectivity between computers and humans.
  3. Input devices are devices that allow our instructions or commands to the computer's brain, the CPU. Reach to.
  4. Magnetic ink character recognition is widely used in the backing field.
  5. An optical mark reader is a device that checks the presence and absence of a pencil or pen symbol on a paper.
  6. Optical character recognition is a technique used to read a particular type of symbol, letter and number.

computer memory ? types of memory ,primary memory ,secondary memory,ram,rom

computer memory? types of memory ,primary memory ,secondary memory,ram,rom


What is Memory?
This device stores the instructions received by the Input Device by storing it in the computer where it also goes to the memory of the computer. In a human, it is a brain to remember some things, similarly, in a computer, memory is there to remember data. This memory is an integral part of C.P.U., it is also called Computer's Main Memory, Internal Memory, or Primary Memory.


"Keeping any instructions, information or results stored is called memory."

computer memory? types of memory, primary memory, secondary memory, ram,rom
Computers have more than one memory. We can generally classify them as Primary and Secondary memory. Primary memory is both Volatile and Non-Volatile. Temporary Memory keeps data from temporarily turning on the computer until the computer is shut down, that is, data is lost from the computer when the computer suddenly shuts down or power goes down. Permanent Memory starts your computer. Are helpful in doing. It contains some very useful firmware which helps in boosting the computer. The process of starting a booting computer is called the main memory. Secondary storage is that which keeps our data for a long time. Secondary storage comes in many forms. Floppy disk, hard disk, cd Etc.

Bit or byte
The data stored in memory is converted to 0 or 1, 0 and 1 are jointly called binary digits. In short, they are also called bits. This bit is the smallest unit to measure the space in a computer's memory.

8 Bits = 1 Bytes

Types of memory

  • Primary Memory
  • Secondary Memory

Primary Memory
Memory is the most important part of a computer where data, information, and programs are present during the process and are available immediately when needed. This memory is unstable memory because the data written in it is erased when the computer is shut down or goes on. This is called primary memory. It is also known as primary memory or main memory.


There are mainly two types of primary memory -

RAM
ROM
1. RAM (Random Access Memory)
RAM or Random Access Memory is the temporary memory of a computer. Data input from the keyboard or any other input device is stored in RAM before processing and the CPU. The data or program is stored temporarily in the RAM, as per the requirement, the stored data stored in the RAM is erased when the computer is shut down or power is gone. Therefore RAM is called Volatile or Temporary Memory. There are many types of RAM capacity or size like - 4 MB, 8 MB, 16 MB, 32 MB, 64 MB, 128 MB, 256 MB,2 GB,4GB, etc.
There are three types of RAM.
  1. Dynamic ram
  2. Synchronous ram
  3. Static ram
Dynamic ram
Dynamic RAM is abbreviated as DRAM. The DRAM is the most common RAM and it needs to be refreshed as soon as possible. Refresh here means to power the chip, it refreshes about a thousand times in a second, and each time it refreshes before it erases the object, its speed is due to a quick refresh. Are less.

Synchronous ram
Synchronous RAM is much faster than DRAM. The reason for its high speed is that it is the CPU. Refresh according to clock speed. That is why they transfer data faster than DRAM.

Static ram
Static RAM is RAM that is less refreshed. Due to less refresh, it keeps the data in memory longer. S-RAM is faster and more expensive than Diagram.

2. ROM (Read-only memory)
The full name of ROM is a read-only memory. This is a Permanent memory in which programs are stored at the time of building a computer. Stored programs cannot be changed and deleted in this memory, they can only be read. So this memory is called read-only memory. The data stored in ROM is not destroyed even after the computer is switched off. Therefore, ROM is called non-volatile or permanent memory.
There are different types of Rome which are as follows -
  1. PROM (Programmable Read-Only Memory)
  2. EPROM (Erasable Programmable Read-Only Memory)
  3. EEPROM (Electrical Programmable Read-Only Memory)
PROM
PROM's full name is Programmable Read-Only Memory, it is such a memory that once the data is stored in it, it cannot be erased nor change.

EPROM
The full name of EPROM is Erasable Programmable Read-Only Memory, it is similar to PROM, but the program stored in it can be erased only by ultraviolet rays and new programs are stored.

EEPROM
The full name of EEPROM is Electrical Programmable Read-Only Memory. There is also a new technology EEPROM, in which the method of modulating the program from memory.

RAM vs ROM
RAM
  1. Temporary Storage
  2. Stores data in MBs
  3. Volatile
  4. Used in normal Operations
  5. Writing data is faster
ROM
  1. Permanent storage
  2. Stores data in GBs
  3. Non-volatile
  4. Used for the startup process of computer
  5. Writing data is slower

Summary Words

  • Storing any instructions, information or results is called memory.
  • Memory is an integral part of C.P.U., it is also called Computer's Main Memory, Internal Memory, or Primary Memory.
  • The full form of RAMis a random access memory.
  • Random-access memory is the computer's temporary memory.
  • The full form of ROM is a read-only memory.
  • Read-only memory is the computer's permanent memory.




system software vs application software

techmyeducation.blogspot.com system software vs application software

system software vs application software

Definition of System Software
The system software is a software written in assembly language, the main purpose of the system software is to manage and control system resources. It takes care of memory management, process management, security, and system security. It also provides computing environments for other software such as application software.

The system creates an interface between the software system and the user's hardware. This user understands the input, this application also acts as an interface between the software and the hardware. When the system is running, the system software starts running and manages all the resources of the system and it runs until the system is closed.

The system software is general purpose software and is essential for computer work. Typically, the end user does not interact directly with the system software. The user interacts with the GUI created by the system software. The best example of system software is the operating system.

Definition of application software
Application software is software written in a high-level language such as Java, VB, .Net, etc. Application software is a special user and is designed to meet the user's requirements. It can be a computing software, editing software, designing software, etc. This means that each application software is designed for a specific purpose.

The application runs on platforms created by software system software. The application software acts as an intermediary between the end user and the system software. You can install any application software on a system software Application software is not required to run the system, but it makes the system useful. Examples of application software are MS excel, powerpoint, etc.

Difference between system software and application software

  • The system software is designed to manage system resources such as memory management, process management, security, etc. and this application also provides a platform for software to run. On the other hand, the application is designed to satisfy user requirements to perform software specific tasks.
  • The system is written in the lower-level language, like software assembly language. However, application software is written in a high-level language like Java, C ++,.Net, VB, etc.
  • As soon as the system software is up and running, the system is turned on and running until the system is closed. The application software starts when the user starts it and the user closes it.
  • A system cannot run without system software, while the application software user is specific they are not required to run the system; They are only for users.
  • While the system software is general purpose software, while the application software is a specific purpose software.
  • The best example of the system software is the operating system, while the examples of application software are Microsoft excel, google chrome, etc.
  • Conclusions:
  • Both, system software and application software make a system useful for the end user. The system software is mandatory for system work. Similarly, the application software user is required to do their specific work.

Explain the secondary storage devices used in modern day computing?

   secondary storage devices

    Secondary storage is where data software can be stored on a permanent basis. The data on secondary memory stays there until it is deleted or overwritten by the user. There are three types of secondary storage devices. They are:
1. Magnetic, 
2. Optical and 
3. Solid-state storage.

secondary storage devices

The most commonly used magnetic storage device is hard drive. Data is stored in a hard drive in a number of platters each containing circular tracks of magnetic spots. Each spot can be magnetized or demagnetized logic one or zero. Storage capacities of hard drives vary from 60 GB-2 TB.

Hard-Disk
Hard-Drive
SSD Solid State Device
Optical Storage Device

 Another popular magnetic storage medium is magnetic tape where data is stored in parallel tracks of magnetic sensitive spots which can be magnetized of left demagnetized representing 1 or 0.

The next type of storage device is the optical storage device. Rather than using magnetic media, optical storage uses microscopic light spots to represent the logic bit 1 and dark spots to represent the logic bit 0. Light and dark spots are often regions that can reflect light to optical sensors and regions that cannot reflect light to the optical sensors. 
Optical storage devices are single platter, 4.7 inches in diameter, and 0.05-inch thickness. There are primarily three types of optical storage devices, CD (compact disk), DVD (digital video disk), and BD (blue-ray disk). CDs can hold about 700 MB of data DVD can hold about 4.7 GB of data and Blue-ray disk can have 5 times the storage of DVD.
Solid state storage devices are becoming more and more popular and they are replacing disk drives (both magnetic and optic). They require less energy and quieter. They are flash memory devices for data storage. A bit 1 is represented by a transistor that accepts electric current and a bit 0 is represented by a transistor that does not accept currents. Some examples of solid-state devices are pen drive, SD card etc. They can store data from few gigabytes to up to 128 GB.

operating system

operating system

operating system

Today we are learning What is the operating system in this post today? And what are its features? To read, let's start:
operating system

The operating system can be easily understood on the basis of the following points: -
1: - The operating system (OS) is a software that functions like a computer and user interface between the user. This is called system software.
2: - The operating system is a set of instructions that store the storage device. And it's a group of programs that manage the resources and operations of computers.
3: - This is the first program to load into the OS computer. It is also called program of programs.
4: - OS manages all the operations of the computer.
5: - There are two types of operating system: -
  • character user interface (CUI)
  • Graphical user interface (GUI)
character user interface (CUI)
CUI is not user-friendly and & nbsp; always need to type the command to run this OS.
Such as: - DOS is a CUI operating system.
Graphical user interface (GUI)
The GUI operating system is user-friendly and commands are not required to run this operating system, but the program to open it has to be clicked with the mouse.
Like: - Windows is a GUI operating system.
6: - OS work is to run other programs and applications and it functions like a bridge between computer hardware and software.
7: - Without a computer OS is useless (useless).
8: - Multitask operating system runs very short programs at the same time. And the operating system determines which program will run when and how long it will run.

Characteristics of Operating System

1. Memory management: ManageOS memory, it keeps complete information of primary memory and sees which part of the memory is used by which program. Whenever a program requests, it allocates memory.
processor management: This program allocates the processor (CPU) and when a program needs cpu to finish it also deallocate it.

2. Device management: - OS keeps track of all devices, it is also called I / O controller. And the OS also decides which device to be given which device to be given, when and how long it will be given.

3. File Management: - It allocates and deallocate resources and decides which programs to be given the resources, that is to be allocated.
Security (security): -This protects any program or data from unauthorized access. In this, password and other techniques are used.
4. reliability (reliable): -It is very reliable because it can detect any virus and harmful codes.

5.cost: - The operating cost of the operating system is determined based on its features such as: - The cost of windows is around 100 $, while DOS and UNIX operating systems are free.

6.Ease of use: - It can be easily used because it also has a GUI interface.

advantage of operating system (operating system benefits)

The benefits are as follows: -
  1. It can be easily used because it has a graphical user interface. & Nbsp; And new users can run computers easily by this.
  2. Through this, we can share one data with a lot of users.
  3. Through this, we can share resources like: - Printer.
  4. They can be easily updated.
  5. It is safe such as: - windows have windows defender which detects any type of harmful files and removes them.
  6. Through this, we can install any game or software and run them.
  7. Some operating systems (like: - LINUX) are open source, we can run them on free on my computer.

disadvantage of operating system

  1. Some operating systems are free but some are expensive such as: - windows costs around 5000 ₹ to 10000 की.
  2. Running linux is a bit harder to compare than Windows.
  3. Sometimes it does not support any hardware,
  4. The risk of viruses in mac OS is high.

process control block operating system

process control block operating system
process control block operating system

The PCB's full name is the process control block. It is also called task control block.
PCB is a data structure maintained by the operating system for each process or task.
PCB is a data structure used to store various processes information.
Process control block which is very important in multi-programming, because in many programming, many summary processes run simultaneously simultaneously, it stores information about those processes.

process control block operating system
PCB stores the following information: -

  • Process name
  • State of process, that is what its current state is like: - running, waiting, ready etc.
  • Process resources
  • Memory (which is provided to the process)
  • The input and output devices used by the process
  • process ID, (There is a unique indentification to indentify each process in the operating system.)
  • scheduling information
  • file management information

process control block operating system
description of process control block components: -
process control block operating system

The components of the process control block operating system are as follows: -
1: - Process ID: - There is a unique ID of each process running in the computer system with multiple summary processes at one time.
Scheduling system processes with the help of this ID. This ID is made available through PCB.
Simply it is a unique ID  used to uniquely identify process in OS

2: - Process state: - Each process has one state, such as: - new, ready, running, waiting, halted etc.
The process control block defines the state of each process.
3: - CPU registers: - How many types of registers can be done, because the number of registers and types of the CPU Depends on the architecture of. It covers accumulators, index registers, stack pointers and general purpose registers and so on.
4: - program counter: - program counter, the next instruction address that is executing for the process is stored.
5: - CPU scheduling information: -CPU scheduling information is used to set the priority of the processes.
6: - memory management info: - This page table, segment table, base register and store information for the limit registers.
7: - accounting information: - Includes CPU utilization, process execution time, number of processes and account no. There are information stores in the form of etc.
8: - I / O status information: - It stores information about the input and output devices that are allocated to the process.

types of operating systems in computer

types of operating systems in computer

operating system
Operating system is a software program that is located between computer users and computers, and acts as an interface between application program and computer hardware.

types of operating system in computer
The following is its type
  1. Real Time
  2. Batch
  3. Distributed
  4. Network
  5. Single user - Multi user
  6. Single tasking - Multi tasking
1.Real Time operating system (RTOS)
The real time operating system is the operating system that meets the task at the given time. It is a very fast operating system in which time is very short. It supports real time application
And they are used for industrial and scientific work.

types of operating system in computer


It is of two types
1: - hard real time
2: - soft real time

1: - Hard real time operating system: - This operating system guarantees that the task will be completed in the given time. It is very strict.
2: - Soft real time: - This operating system also tries to accomplish that given task is completed on time and those who are the highest priority task must be completed before, but there is no guarantee of completion at the time of the task. Does not happen This is a bit less strict. </ P>

types of operating system in computer
2.Batch operating system
The batch does not interact directly with operating system users.
In this operating system, a batch of similar jobs is created and that batch is stored in the punch card (it stores digital data) and that punch card is given to the operator
And that operator gives the punch card to the computer for processing and the computer then completes the jobs in that card in a sequential manner.

types of operating system in computer

The biggest problem with this operating system was that it could not interact directly with users. If there was any disturbance in any job then all jobs were affected. And other jobs had to wait until the disturbance was correct.
The other problem was that one should have all kinds of jobs in a batch and it took more time to make the batch.

types of operating system in computer
3.Distributed operating system (DOS)
Distributed operating systems are systems that store data and distribute it on very narrow locations.
The central operating system is used in distributed operating systems, and data processing jobs are distributed among these processors.
This central processor can be a computer, site, node or any other device. All these processors are interconnected with each other through communication lines.

types of operating system in computer
Its Benefits
One advantage of distributed OS is that if users are on a computer then they can access data / resources of another computer.
Data is also exchanged via email, which increases the speed of data exchange.
If a site or computer is closed in the distributed system then it can be worked out from other computers.
This simplifies the process of data processing.

types of operating system in computer
4.Network operating system
The network operating system is an operating system that runs on the server.
types of operating system in computer

This OS has such functions that the computer, work station or other device is connected to the local area network.
The main purpose of this OS is to share files between LANs in many servers, share applications, share databases, share printers and make security available.
Examples of this OS are: - Windows NT, Windows Server 2003, Windows Server 2008, linux, unix, mac OS. e.t.c.

types of operating system in computer
5.Multi user single user operating system
single user Operating System is the operating system in which only one user can access the computer system at a time.
However, the Multi User Operating System is the operating system in which a lot of users can access the computer system at a time.

Single tasking and Multi Tasking opeating system
Single tasking Operating System is an OS, which can be done only once in a single task. palm OS is an example.
However, the multitasking operating system is the operating system in which a lot of work can be done at one time.
Microsoft's Windows, Apple's Mac OS are examples of this.
Like in Windows, we can listen to songs at the same time, write something in Notepad, and download songs from the Internet. We can do all these work at the same time. 

random access memory advantages and disadvantages and types of RAM

random access memory advantages and disadvantages and types of RAM

RAM stands for Random Access Memory. It is a computer based on a computer that stores data temporarily. (temporarily means it only stores data for some time)
RAM is also called main memory, primary memory or system memory. It is also sometimes called read-write memory.

Randomly accesses the computer data by computer so that the computer can work very fast. The data sequence in the CD and hard drive is accessed, due to which they are slow.
RAM is a volatile memory and power is required to access its data if the computer is switched off, the amount of data in the RAM will be lost. If the computer is rebooted then the operating system and other files are loaded by the hard disk in R.A.M.
It is located in the motherboard and acts as a read and write at the same time. Its read and write speed is much faster than other storage devices. And RAM memory is measured in bytes (GB, MB).

advantage of RAM
1: - This increases the speed of the computer system, the higher the speed of the system the more RAM will be.
2: - The CPU can read data faster than RAM. (Compared to hard disk, CD, DVD, FLOPPY, DISK and USB)
3: - There is very little use of power in which battery life increases.
4: - There are no moving parts in it, i.e. none of its parts move.
5: - It can write and erase operations.

disadvantage of RAM
1: - The computer is less RAM, because its cost of each bit is very high.
2: - It is volatile i.e. in which data can not be stored forever.
3: - It is very expensive.
4: - This is slow (slow) from CPU cache.

History of RAM
In earlier computers, relays, mechanical counters or delay lines were used for the function of main memory.
The first random access memory was built in 1947. Whose name was william tube. In this, the cathode ray tube was used.
The second RAM was also built in 1947. Whose name was magnetic core memory.
The name of the RAM used today is - solid state memory. It was first developed by Robert Dennard in 1968.

Types of RAM
This is mainly of two types which are as follows: -
SRAM
DRAM

What is SRAM 
The full name of SRAM is static random access memory . It requires a constant power to work. Due to continuous power getting it, it does not need to be refreshed.
SRAM uses very narrow transistors for each memory cell, but there is no capacitor for each cell.
Nowadays it is used in cache memory and registers. Its discovery was done in the 1990s and used in digital cameras, routers, printers and LCD screens.

advantage of SRAM
The benefits are as follows: -
It is much faster than DRAM.
It does not need to be refreshed.
It is used to create cache.
It requires medium power.

disadvantage of SRAM
This loss is low;
Compared to DRAM, this is expensive.
It is volatile when power is not lost, its data is lost.
Its storage capacity is low.
Its design is very complex.

what is DRAM
DRAM's full name is dynamic random access memory. It requires a refresh power to work. And it has a transistor and capacitor for the memory cell.
It was created in the 1970s and used in video game consoles, networking hardware, and system memory etc.

advantage of DRAM
It is cheaper than SRAM.
Its memory cell structure is very simple.
Its size is very small.
Its storage capacity is high.

disadvantage of DRAM
Its speed is very low compared to SRAM.
When power goes away, its data is finished.
It has more power consumption.
single data rate synchronous dynamic RAM (SDR SDRAM)
double data rate synchronous dynamic RAM (DDR SDRAM, DDR2, DDR3, DDR4)

difference between ram and rom
RAM vs. ROM

It is volatile memory.
This is non-volatile.

Keeps the data or information temporarily stored.
Keeps data permanently stored.

It is very fast but it uses a lot of power.
Rome is fast but less than RAM. And it uses less power.

It stores data in the MB.
Stores data in GB.

It is used to perform normal operation.
It is used for the initial process of the computer.

The size of its chip is raised by ROM.
Its chip size is small.

It is of two types - static and dynamic
PROM, EPROM, EEPROM is its type.

It requires power to access the data.
It does not require power to access data.