Docsity

Kernel, Operating System, Embedded Systems, Exercises of Computer science

Toggle sidebar
bg1
1. What is kernel? Write down its key jobs for an OS.
Kernel: A kernel is the core component of an operating system. Using intercrosses
communication and system calls, it acts as a bridge between applications and the data processing
performed at the hardware level.
When an operating system is loaded into memory, the kernel loads first and remains in memory
until the operating system is shut down again. The kernel is responsible for low-level tasks such
as disk management, task management and memory management.
Fig: The jobs of a kernel in a Computer.
There are five types of kernels:
Monolithic Kernels: All operating system services run along the main kernel thread in a
monolithic kernel, which also resides in the same memory area, thereby providing powerful and
rich hardware access.
Microkernels: Define a simple abstraction over hardware that use primitives or system calls to
implement minimum OS services such as multitasking, memory management and interprocess
communication.
Hybrid Kernels: Run a few services in the kernel space to reduce the performance overhead of
traditional microkernels where the kernel code is still run as a server in the user space.
Nano Kernels: Simplify the memory requirement by delegating services, including the basic ones
like interrupt controllers or timers to device drivers.
Exo Kernels: Allocate physical hardware resources such as processor time and disk block to other
programs, which can link to library operating systems that use the kernel to simulate operating
system abstractions.
Kernel key jobs for an OS:
๏ƒ˜ Process management for application execution.
๏ƒ˜ Memory management, allocation and I/O.
๏ƒ˜ Device management through the use of device drivers.
๏ƒ˜ System call control, which is essential for the execution of kernel services.
pf3
pf4

Partial preview of the text

Download Kernel, Operating System, Embedded Systems and more Exercises Computer science in PDF only on Docsity!

1. What is kernel? Write down its key jobs for an OS. Kernel: A kernel is the core component of an operating system. Using intercrosses communication and system calls, it acts as a bridge between applications and the data processing performed at the hardware level. When an operating system is loaded into memory, the kernel loads first and remains in memory until the operating system is shut down again. The kernel is responsible for low-level tasks such as disk management, task management and memory management. Fig: The jobs of a kernel in a Computer. There are five types of kernels: Monolithic Kernels: All operating system services run along the main kernel thread in a monolithic kernel, which also resides in the same memory area, thereby providing powerful and rich hardware access. Microkernels: Define a simple abstraction over hardware that use primitives or system calls to implement minimum OS services such as multitasking, memory management and interprocess communication. Hybrid Kernels: Run a few services in the kernel space to reduce the performance overhead of traditional microkernels where the kernel code is still run as a server in the user space. Nano Kernels: Simplify the memory requirement by delegating services, including the basic ones like interrupt controllers or timers to device drivers. Exo Kernels: Allocate physical hardware resources such as processor time and disk block to other programs, which can link to library operating systems that use the kernel to simulate operating system abstractions. Kernel key jobs for an OS: ๏ƒ˜ Process management for application execution. ๏ƒ˜ Memory management, allocation and I/O. ๏ƒ˜ Device management through the use of device drivers. ๏ƒ˜ System call control, which is essential for the execution of kernel services.

2. Define Mainframe computer and Super computers. Mainframe Computer: A very large and expensive computer capable of supporting hundreds, or even thousands, of users simultaneously. In the hierarchy that starts with a simple microprocessor (in watches, for example) at the bottom and moves to supercomputers at the top, mainframes are just below supercomputers. In some ways, mainframes are more powerful than supercomputers because they support more simultaneous programs. But supercomputers can execute a single program faster than a mainframe. The distinction between small mainframes and minicomputers is vague, depending really on how the manufacturer wants to market its machines. Super Computer: The fastest type of computer. Supercomputers are very expensive and are employed for specialized applications that require immense amounts of mathematical calculations. For example, weather forecasting requires a supercomputer. Other uses of supercomputers include animated graphics, fluid dynamic calculations, nuclear energy research, and petroleum exploration. The chief difference between a supercomputer and a mainframe is that a supercomputer channels all its power into executing a few programs as fast as possible, whereas a mainframe uses its power to execute many programs concurrently. 3. What is embedded systems? Give some example. Embedded System: An embedded system is a combination of computer hardware and software, either fixed in capability or programmable, designed for a specific function or functions within a larger system. Industrial machines, agricultural and process industry devices, automobiles, medical equipment, cameras, household appliances, airplanes, vending machines and toys, as well as mobile devices, are possible locations for an embedded system. Embedded systems are computing systems, but they can range from having no user interface (UI) -- for example, on devices in which the system is designed to perform a single task -- to complex graphical user interfaces (GUIs), such as in mobile devices. User interfaces can include buttons, LEDs, touchscreen sensing and more. Some systems use remote user interfaces as well. Example of Embedded System: Digital Camera: ๏ƒ˜ A digital camera is very good example of embedded systems. ๏ƒ˜ Cameras that we use today are smart and have a lot of features that were not present in early cameras all because of embedded system used in them. ๏ƒ˜ A digital camera has basically three functions, to capture image which we call data, to store image data, and to represent this data. ๏ƒ˜ Today images are stored and processed in form of digital data in bits. ๏ƒ˜ There is no need of film for storing images. This feature has increased the storage capacity and made it easy to transfer images.

5. Write down 5 advantages of Linux from other OS. 5 advantages of Linux from other OS: Cost: Since the beginning of time that Linux was created for the use of free software, so we will not have to pay any license as in Windows, which in itself are a bit expensive in the case of Microsoft and can only use one license for a computer. In the case of Linux, we must clarify that most distros are free to use and only some are paid, as in the case of Red Hat. Security: If there is something that Linux has always highlighted, it is security. Application: Windows has at its disposal an extensive collection of apps available but Linux does not come lame regarding options, for example, only in text editors we can choose from more than 100 different, with different functions and appearance that fit your taste. Also, everything is free software and therefore free. The advantage of free software is that any user with knowledge can contribute to improving Linux applications, although free software can also exist in other operating systems and is not exclusive to the โ€˜penguin,โ€™ but is more widespread here. Hardware: Another of the universal truths that exist around Linux is that, in general, it is a system that takes better advantage of hardware resources. This results in higher system performance with the same computer configuration as Windows. It is also possible to use one or another distro or desktop environment depending on the power that our computer has; scalability is one of the strengths of this system. Freedom: Linux in all its flavors always allows excellent personalization and liberty. For those more experienced users, they are allowed to configure the Linux Kernel completely.