Saturday, 6 May 2017

Operating System - System Software that Manages Computer Hardware And Software Resources

         
         An operating system (OS) is a collection of software that manages computer hardware resources and provides common services for computer programs. The operating system is a vital component of the system software in a computer system.
            An Operating System (OS) is an interface between a computer user and computer hardware. An operating system is a software which performs all the basic tasks like file management, memory management, process management, handling input and output, and controlling peripheral devices such as disk drives and printers.
  Some popular Operating Systems include Linux, Windows, OS X, VMS, OS/400, AIX, z/OS, etc.

  Following are some of the important functions of an operating System.

  • Memory Management
  • Processor Management
  • Device Management
  • File Management
  • Security
  • Control over system performance
  • Job accounting
  • Error detecting aids
  • Coordination between other software and users
Memory Management
·        Keeps tracks of primary memory, i.e., what part of it are in use by whom, what part are not in use.
·        In multiprogramming, the OS decides which process will get memory when and how much.
·        Allocates the memory when a process requests it to do so.
·        De-allocates the memory when a process no longer needs it or has been terminated.

Processor Management

·        Keeps tracks of processor and status of the process. The program responsible for this task is known as the traffic controller.
·        Allocates the processor (CPU) to a process.
·        De-allocates processor when a process is no longer required.

Device Management

·   Keeps tracks of all devices. The program responsible for this task is known as the I/O controller.
·        Decides which process gets the device when and for how much time.
·        Allocates the device in an efficient way.
·        De-allocates devices.

File Management

·       Keeps track of information, location, uses, status etc. The collective facilities are often known a file system.
·        Decides who gets the resources.
·        Allocates the resources.
·        De-allocates the resources.

Types of Operating System

Batch operating system

  • Lack of interaction between the user and the job.
  • CPU is often idle because the speed of the mechanical I/O devices is slower than the CPU.
  • Difficult to provide the desired priority.

Time-sharing operating systems

 The advantages of network operating systems are as follows −
  • Centralized servers are highly stable.
  • Security is a server managed.
  • Upgrades to new technologies and hardware can be easily integrated into the system.
  • Remote access to servers is possible of different locations and types of systems.
The disadvantages of network operating systems are as follows −
  • The high cost of buying and running a server.
  • Dependency on a central location for most operations.
  • Regular maintenance and updates are required.
Real Time operating System
        A real-time system is defined as a data processing system in which the time interval required to process and respond to inputs is so small that it controls the environment. The time taken by the system to respond to an input and display of required updated information is termed as the response time.

Services

     An Operating System provides services to both the users and to the programs.
  • It provides programs an environment to execute.
  • It provides users the services to execute the programs in a convenient manner.
Following are a few common services provided by an operating system −
  • Program execution
  • I/O operations
  • File System manipulation
  • Communication
  • Error Detection
  • Resource Allocation
  • Protection
Process
       A process is basically a program in execution. The execution of a process must progress in a sequential fashion.

    A process is defined as an entity which represents the basic unit of work to be implemented in the system. To put it in simple terms, we write our computer programs in a text file and when we execute this program, it becomes a process which performs all the tasks mentioned in the program.
   When a program is loaded into the memory and it becomes a process, it can be divided into four sections ─ stack, heap, text, and data. The following image shows a simplified layout of a process inside main memory.
Program
    A program is a piece of code which may be a single line or millions of lines. A computer program is usually written by a computer programmer in a programming language. For example, here is a simple program is written in C programming language −
#include <stdio.h>

int main() {
printf("Hello, World! \n");
return 0;
}

Process Scheduling Queues

The Operating System maintains the following important process scheduling queues −
·        Job queue − This queue keeps all the processes in the system.
·        Ready queue − This queue keeps a set of all processes residing in main memory, ready and waiting to execute. A new process is always put in this queue.
·        Device queues − The processes which are blocked due to unavailability of an I/O device constitute this queue.
        A Process Scheduler schedules different processes to be assigned to the CPU based on particular scheduling algorithms. There are six popular process scheduling algorithms which we are going to discuss in this chapter −
  • First-Come, First-Served (FCFS) Scheduling
  • Shortest-Job-Next (SJN) Scheduling
  • Priority Scheduling
  • Shortest Remaining Time
  • Round Robin(RR) Scheduling
  • Multiple-Level Queues Scheduling

What is Thread?

           A thread is a flow of execution through the process code, with its own program counter that keeps track of which instruction to execute next, system registers which hold its current working variables, and a stack which contains the execution history.
      A thread is also called a lightweight process. Threads provide a way to improve application performance through parallelism. Threads represent a software approach to improving the performance of the operating system by reducing the overhead thread is equivalent to a classical process.

I/O Hardware

         An I/O system is required to take an application I/O request and send it to the physical device, then take whatever response comes back from the device and send it to the application. I/O devices can be divided into two categories −
·        Block devices − A block device is one with which the driver communicates by sending entire blocks of data. For example, Hard disks, USB cameras, Disk-On-Key etc.
·        Character devices − A character device is one with which the driver communicates by sending and receiving single characters (bytes, octets). For example, serial ports, parallel ports, sounds cards etc

I/O Softwares

I/O software is often organized in the following layers −
·        User Level Libraries − This provides a simple interface to the user program to perform input and output. For example, stdio is a library provided by C and C++ programming languages.
·        Kernel Level Modules − This provides device driver to interact with the device controller and device independent I/O modules used by the device drivers.
·        Hardware − This layer includes actual hardware and hardware controller which interact with the device drivers and makes hardware alive.

File System

File

          A file is a named collection of related information that is recorded on secondary storage such as magnetic disks, magnetic tapes, and optical disks. In general, a file is a sequence of bits, bytes, lines or records whose meaning is defined by the files creator and user.

File Structure

A File Structure should be according to a required format that the operating system can understand.
·        A file has a certain defined structure according to its type.
·        A text file is a sequence of characters organized into lines.
·        A source file is a sequence of procedures and functions.
·        An object file is a sequence of bytes organized into blocks that are understandable by the machine.

Security

        Security refers to providing a protection system to computer system resources such as CPU, memory, disk, software programs and most importantly data/information stored in the computer system. If a computer program is run by an unauthorized user, then he/she may cause severe damage to computer or data stored in it. So a computer system must be protected against unauthorized access, malicious access to system memory, viruses, worms etc. We're going to discuss following topics in this chapter.
  • Authentication
  • One Time passwords
  • Program Threats
  • System Threats
  • Computer Security Classifications
   Linux is one of the popular version of UNIX operating System. It is open source as its source code is freely available. It is free to use. Linux was designed considering UNIX compatibility. Its functionality list is quite similar to that of UNIX.

Components of Linux System

 Linux Operating System has primarily three components
·      Kernel − Kernel is the core part of Linux. It is responsible for all major activities of this operating system. It consists of various modules and it interacts directly with the underlying hardware. The kernel provides the required abstraction to hide low-level hardware details to system or application programs.
·       System Library − System libraries are special functions or programs using which application programs or system utilities accesses Kernel's features. These libraries implement most of the functionalities of the operating system and do not requires kernel module's code access rights.
·        System Utility − System Utility programs are responsible to do specialized, individual level tasks.

Taj Mahal - Ivory | White Marble Mausoleum

       Taj Mahal is one of the most popular monuments in India and the world. People from far off places come to visit the monument. It was built for the commemoration of Mumtaz Mahal, the beloved wife of Shah Jahan. In this tutorial, we will provide a brief description about Taj Mahal along with its history and other aspects.

        Taj Mahal is a beautiful monument built on the bank of Yamuna River in Agra. It is made up of white ivory marble. It was built as a tomb for Mumtaz Mahal, the beloved wife of Mughal Emperor Shah Jahan. The monument includes a mosque and a guest house along with a garden which surrounds the monument from three sides.

Visiting Hours

       Taj Mahal is opened to the public from sunrise to sunset on all days except Friday. Taj Mahal is also opened from 8:30 pm to 12:30 am at night on the full moon day and two days before and after the full moon day.

Tickets

     Tourists have to buy tickets in order to visit the monument. A foreigner has to pay a thousand rupees while citizens of SAARC and BIMSTEC countries have to pay Rs. 700. For Indians, the cost of the ticket is Rs. 70 only.

Best Time to Visit

   The best time to visit Agra is from February to April and from October to December as the weather remains pleasant during this time of the year. In the rest of the months, the climate is either very hot, humid or very cold which can lead to the discomfort of the tourists.

History

        Taj Mahal is built on the banks of river Yamuna and is surrounded by a beautiful garden. Mughal Emperor Shah Jahan constructed it for the commemoration of his wife Mumtaz Mahal. The construction was started in 1631 and in 1643, the construction of the main building was completed. The construction of the whole complex was completed in 1653. Mumtaz Mahal is buried in Taj Mahal.

      History says that more than 22,000 men from India and Central Asia worked together to complete the monument. The artisans include mason, stone cutters, dome builders, painters, carvers etc.

Mumtaz Mahal

    Mumtaz Mahal was the beloved wife of Shah Jahan. Her real name was Arjumand Banu Begum. She was given the title of Mumtaz Mahal by Shah Jahan due to her beauty and character. She was the daughter of Abdul Hasan Asaf Khan and was married to Shah Jahan in 1612 though the engagement was organized in 1607.The palace given to Mumtaz Mahal was named Khas Mahal whose decoration was very sophisticated in comparison the palaces of the other wives of Shah Jahan.

      Mumtaz Mahal was the wife whom Shah Jahan trusted very much. She went with him to many campaigns. She also enjoyed elephant fights and other such entertainments. She was the mother of fourteen children and died in Burhanpur while giving birth to her fourteenth child. Shah Jahan mourned for his wife for a year due to which his hair turned white and the back was bent. Previously, her body was buried in Burhanpur but in 1631, it was brought to Agra and again buried in a small building.

Architecture and Design

      The Taj is constructed on the banks of River Yamuna and it is said that more than 22,000 workers were involved in the construction. Artisans and materials from all over India came for its construction. The Taj is a combination of Islamic, Persian, and Indian architecture. Other structures included in the Taj are a garden, mosque, main gateway, and tomb.

Dimensions

    Taj Mahal is constructed in an area of 42 acres. The main building stands on a platform having a height of 50 meters. The four minars have the height of 137 feet each while the height of the tomb is 58 meters.
There is a mosque in the west and a naqqar khana or guest house in the east. The mosque and the guest house are made up of red sandstone. There is a garden covering the area of 580 meters by 300 meters. The construction of the garden is of Islamic style. It is well watered and green.
Gateway of Taj

       The main gateway of Taj Mahal is 30 meters high and its construction was completed in 1648. The topmost part of the gateway includes chhatris. The gateway is decorated with the verses of the Holy Quran. The door of the gateway is made up of silver with letters engraved on it. After entering the gateway, there is a courtyard.

Mosque


      There is a mosque on the west side of the Taj Mahal that faces the holy city of Mecca. Historians believe that the mosque was constructed by Isa Muhammad. There are two small arches on both sides of the mosque and a portal on its exterior known as Iwan. The three domes and four kiosks are coated with marble.

Garden


     The garden in which the Taj Mahal is situated has a spiritual symbol as the greenery symbolizes paradise mentioned in the Holy Quran. People can reach the garden after the main entrance. The garden is spread in the area of 580 into 300 meters. The garden is divided into sixteen flower beds and is separated by water courses.

Mausoleum

      After crossing the garden, people reach the tomb which covers the area of 95 square meters. People can enter the tomb through a double staircase. There are four minarets each of 137 feet. They are made in such a way that they will not fall on the main tomb during a mishap or a natural calamity. One letter is engraved on each minar and on combining we get the name Ar-Rahman which is one of the many names of Allah.
       There is a central chamber having four rooms below it for the graves of other family members. Aurangzeb replaced the original screen with an octagonal screen which was made up of marble and precious stones. 

Tomb

    The tomb of the Taj Mahal is one of the beauties of the monument. The dome has the circumference of 110 yards and height is 107 yards. The tomb is based on Islamic structure which symbolizes the unification of heaven and earth. The square on which the tomb stands symbolizes the universe.

Cricket - Bat and Ball Game played Between Two Teams

       
  
         Cricket, initially said to be England’s national summer game, has gained immense popularity worldwide. Such is the popularity that it is not only restricted to the professional field, rather people of all ages and gender can be seen playing cricket in their streets and backyards. This tutorial explains the basic rules of the game. It provides information on the cricket pitch and the important gears used during the play.

        Cricket is a team sport that is played outdoors. Cricket originated in England and gradually became popular across the globe. This sport requires complete physical fitness and athleticism to play. The sport is played between two teams of 11 players each.

Objective


        Cricket is played outdoors on a ground. The objective of the game is that a team should score more runs than the opponent team. It is all about attempting to score more runs while restricting the score and dismissing the batsmen of the opponent team. Further in the document, one can closely understand the game, its popular terms, and rules.

Team Size


        In cricket, each playing side has 11 players and one of them is appointed as captain. Apart from these 11 players, there are a few more players on each side who can only field as a substitute for an injured team member. The fielding team should have 11 players and the opposition can send only two batsmen on the ground at the time of play.

Cricket Field Dimensions


       The sport is played on presumably a circular leveled ground with the pitch as the center. The pitch is 24-yards in length and 4-yards in breadth. A rope is placed around the ground at a distance of 80 yards from the pitch. This rope is observed as a boundary. The stumps are rooted at both ends with a distance of 22-yards between them. Two carved small pieces of wood are placed on stumps, called bails. White parallel lines are drawn on both ends of stumps, called batting/bowling crease. It is 1.2 meters from stumps. Another set of parallel lines is drawn a perpendicular to batting crease, called return crease. This is at a distance of half-meter from the length of the pitch.
Dimensions of Cricket Equipment
       ICC has formed certain rules for cricket equipment along with the rules of play. The bat, ball, glove, pads, and all other equipment have to meet the standards set by the governing body. It’s not only the size of equipment but also the logos used on the equipment that should conform to the standards set by ICC. Given below is a list of cricket equipment with permissible measures −
·        Bat − A cricket bat should not be more than 38 inches in length and 4.25 inches wide.
·   Ball − The cricket ball must weigh between 155.9 and 163 g. Apart from weight, the circumference should be between 224 and 229 mm.

·     Keeper glove − The keeper glove doesn’t have a specific measurement but should not be made of stretchable material. The glove has to web between thumb and the index finger.

Equipment

Bat − Bat is a nicely carved equipment made out of special wood, with a handle on top to hold and play. These vary in weight and size with age and requirement of the batsman.

Ball − It is a spherical object made out of cork and covered with leather. Two pieces of leather are stitched around the cork ball. The color of the ball for test matches is red and white for ODI and T20 matches.

Keeper Glove − These are worn on both hands to protect the fingers from injury. Cloth and leather are stitched together in the shape of fingers and palm to fit exactly. The inner side of the glove has finger gaps with cork tips for more protection.

Batsman Glove − This gear is similar in shape but smaller and softer on the outer part when compared to keeper glove. It is used to hold the bat firmly. The finger part of the glove has extra protection with a hard sponge on the outer area.

Keeper/Batsman Pads − These are worn to protect the lower limbs of the batsman/keeper. They are made with cloth and leather. The front portion of the pads is very hard as there is hard plastic or wood sticks beneath. The rear portion is spongy and soft to soothe and comfort legs. Keeper pads are little shorter than batsman pads.

Helmet − A head gear for the batsman/keeper while batting or wicketkeeping behind the stumps. It is a mix of metal and hard plastic. It has a metallic grill in the front to protect the face.
Stumps − These are cylindrical and long in shape with a sharp end like a spear. This end goes into the ground so that stumps stand erect on the ground.
Bails − Bails are the smallest equipment placed on stumps. It helps in giving easy decisions by umpires to dismiss the batsman when the wicket is broken.

Common Terms

·        Striker − A batsman facing the bowler is caller striker and the opposite end is called non-striker.
·        Off-side/leg-side − One-half of the ground is called off-side and the other side is called leg-side. From the perspective of a right-handed batsman, the pitch in front of his body as he takes a strike, i.e. the right side of the pitch is called off-side. Similarly, the left half of the pitch, i.e. the pitch behind his body while taking a strike is called as leg-side.
·        Run − It is the basic unit of scoring in cricket. It is scored when a striking batsman hits the ball bowled and runs between the stumps along with non-striker. It is usually scored in ones, twos, and threes.
·        Four − The ball hit by the batsman crosses the boundary rope by rolling on the ground. Then, it is called a boundary or four runs.
·        Six − The shot that ensures the ball lands directly outside the rope is called six or six runs are allotted to the batsman.
·        No-ball − If a bowler’s foot crosses the popping crease while delivering the ball then, it is called a no-ball. The ball bowled that is directed above the waist of the batsman without pitching on the ground is a no-ball too.
·        Wide − A ball that is bowled away from the batsman and moves wide of the return crease on the off-side at the batting end is called wide. Another definition is ball bowled that bounces over the head of the batsman after pitching is also called wide.
·        Out − When a batsman gets out, it gives the opportunity to the next person on the batting side to play until 10 players out of 11 are dismissed in various ways. Bowled, Caught, Run-out, LBW, and Stumped are the most common ways of getting out.
·        Bowled − It is a way of getting out where the batsman misses the ball bowler and the stumps behind are disturbed.
·        Caught − A batsman is declared out when the fielder catches the ball on full that is hit by the batsman. If it is caught by the wicket-keeper then, it is called caught-behind.
·        LBW − LBW stands for leg-before-wicket. A batsman is declared out as lbw when he tries to play the ball with the body that is directed onto stumps.
·        Run-out − If a fielder disturbs the stumps with ball in hand while the batsman is not in the crease after playing a shot, then the batsman is declared run-out.
·        Stumped − A batsman moves out of the crease to play a ball and misses, the keeper gathers the ball and hits the stumps with ball in hand. Then, the batsman is declared out as stumped.
·        Spin bowling − Bowlers run a short distance from stumps and release the ball with the use of wrist or fingers to get maximum revolutions. The ball tossed in the air spins after pitching. Off-break and leg-break are two varieties of spin bowling.
·        Fast bowling − Bowlers sprint and deliver the ball at high speed to the batsman. To do so, they take long run-up from stumps. Slow-medium, medium-fast, and fast are the popular fast bowling varieties.
·        Extra runs − All the runs given by fielding team where the batsmen have not hit the ball with the bat are considered as extra runs. For example, wide, no-ball, etc.

·        Innings − A session of batting and bowling where either the batting team is all out or the permissible number of overs to be bowled by the fielding team is completed.

Let’s play!


·        Two batsmen from the batting side and 11 players from the fielding side take positions. Two umpires also join them on the field. One stands at the pitch and the other on leg-side.
·        Suppose A and B are two teams playing a limited over cricket match. Captain of A wins the toss and elects to bat first.
·        The game starts with bowler from B team bowling to the first batsman of A team. They are usually called opening bowler and opening batsman. The first two batsmen are called openers as they start the innings of their team.
·        The batsmen hits the balls bowled at them and score runs. Fielders attempt to stop the balls that were hit and even catch them to get the batsmen out.
·        Each bowler bowls 6 legal deliveries to call it an over.
·        The bowling and batting ends change after every over. The non-striker at the end of every over becomes the striker of the next over.
·        The wicket-keeper has to change ends after completion of each over. In general, the keeper stands far from stumps when a fast bowler is bowling and closer to stumps when a spinner is in action.
·        Once a batsman is out, he has to walk out of the field and a new batsman comes to the crease. An innings is regarded as complete if all the batsmen of team A are out or team B has bowled their full quota of overs.
·        Now, team B comes on to bat in the second innings to chase the target set by team A.
·        Team B is accorded as winners if they achieve the target else, A is victorious.
·        If the scores are level at the end of match, then it is called a tie.

Formats

Test Cricket

       Test cricket is considered the format of the highest level as it required both mental and physical strength to excel. All players wear white tees and trousers for this format. A red cricket ball is used to play. The earliest format of test cricket was played for six days with a day as a reserve. The field restrictions are quite different compared to limited overs cricket.

One-Day International

         One-day international (ODI) is a limited over format of cricket. It was introduced in the 1980s and 60 over a side were bowled. The dress code was same to that of test cricket. Over the years, this format also went through drastic changes in rules and it was reduced to 50 over a side and colored uniform. The red-ball was replaced with white-ball.

T20 International

           T20 is the latest and the most successful format of cricket. It has attracted a lot of spectators to the ground and witnesses the match. Cricket became a widespread game in this format and new countries like United States, Malaysia, Canada, and Netherlands adapted to it swiftly. It originated in Caribbean islands, West Indies. Each team gets to play 20-over a side. Since it is the shortest format of the game, it is played under floodlights.











Popular Posts