Posts

Showing posts with the label Operating System

What is Operating System? Types of Operating System

Image
  Introduction to Operating System In this article, we will discuss the various operating system types that are necessary for every computer, but before that, let us know what you mean by the operating system? What do you mean by the Operating System? Operating System: An Operating System is usually considered the vital component of any computer system for its functions effectively and efficiently. Moreover, the operating system is considered the type of software interface between the user and hardware device, or it can be said to bridge the gap between the user interface and the hardware device.  It generally allows the particular users to communicate effectively and efficiently with the respective device and perform the various desired functions. The operating system usually uses two different components to manage computer programs and their applications effectively. The two different components are as follows: 1)    The Kernel: Kernel is usually conside...

Difference Between Android and Windows OS

Image
Android Vs Windows OS Which is Better?  Android as well as Windows OS both are excellent operating systems that can be used with a variety of tablets and smartphones. Both operating systems are used by millions of users across the globe. They offer different features and specs sheets that differ from one another. Android is created and is distributed through Google Android, and Windows is created and released via Microsoft. From the beginning, Android phones are much popular in the marketplace due to their low prices and the fact that a large number of businesses are advertising Android phones. Android is an open source operating system. Android operating system runs completely free while Windows is a closed source operating system. Windows operating system can be closed-sourced. Windows Phone has a limited range of manufacturers and the majority of phones are priced higher. One of the major disadvantages of Microsoft's Windows operating system , is updates are only provided by ...

What is Semaphore in Operating System ?

Image
 What is Semaphore? Semaphore is simply a non-negative variable that can be shared between threads. A semaphore acts as a signaling mechanism. Threads that are waiting on a semaphore may be signaled by other threads.  It employs two atomic operations: 1)wait and 2) signal for the process of synchronization. A semaphore allows or denies access to the resource depending on how it is set-up. Characteristic of Semaphore  These are the characteristics of a semaphore It can be used for synchronization of tasks. It's a low-level mechanism for synchronization. Semaphore will always have a non-negative integer number. Semaphore is possible to be implemented using interrupts and test operations, which should all be executed using file descriptors. Different types of semaphores These are the two most common types of semaphores. Counting semaphores Binary semaphores Counting Semaphores This Semaphore has a count that allows for multiple times to be obtained or released. If the initi...

What is a Deadlock Prevention Algorithm in Operating System?

Image
Deadlock Prevention Algorithm in Operating System  We used these conditions to prevent deadlock: Mutual Exclusion Hold on and Wait No preemption Circular Wait 1.   1. The mutual exclusion is a resource-based concept that prevents more than one process from using the same resource at once.   This is fair, but it causes a deadlock.   There is no way to wait for the resource if we have the possibility of using the same resource for multiple processes at once. However, if the resources are not performing in a mutually exclusive way, then we can prevent the system becoming stuck. Spooling:  Spooling is shorthand for Simultaneous Perimeter Operations Online.   Spooling is used for devices like Printer, Mouse, and Keyboard.   Let's look at the workings of a printer's spooling process: Memory is an associated component of a printer. This memory allows us to store all of the jobs. After collecting all jobs, the printer prints each job in FCFS (First Come First ...