




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































BCOM 122: Computer Applications Lecturer: Dr. Amolo Elvis Expected Learning Outcomes:
The input unit consists of input devices that are attached to the computer. These devices take input and convert it into binary language that the computer understands. Some of the common input devices are keyboard, mouse, joystick, scanner etc. The Input Unit is formed by attaching one or more input devices to a computer. A user input data and instructions through input devices such as a keyboard, mouse, etc. The input unit is used to provide data to the processor for further processing.
2. Central Processing Unit: The CPU (Central Processing Unit) is the brain of the computer because it controls everything the computer does. When you enter information using an input device, the CPU processes it. First, it fetches instructions from memory, then decodes them to understand what needs to be done. If needed, it retrieves data from memory or an input device. After that, the CPU executes the task and either stores the result or displays it on an output device. The CPU has three main parts: the Arithmetic Logic Unit (ALU), which handles calculations and logic; the Control Unit (CU), which directs operations; and Memory Registers, which store temporary data. A. Arithmetic and Logic Unit (ALU): The ALU, as its name suggests performs mathematical calculations and takes logical decisions. Arithmetic calculations include addition, subtraction, multiplication and division. Logical decisions involve the comparison of two data items to see which one is larger or smaller or equal. Arithmetic Logical Unit is the main component of the CPU It is the fundamental building block of the CPU. Arithmetic and Logical Unit is a digital circuit that is used to perform arithmetic and logical operations. B. Control Unit: The Control unit coordinates and controls the data flow in and out of the CPU, and also controls all the operations of ALU, memory registers and also input/output units. It is also responsible for carrying out all the instructions stored in the program. It decodes the fetched instruction, interprets it and sends control signals to input/output devices until the required operation is done properly by ALU and memory. The Control Unit is a component of the central processing unit of a computer that directs the operation of the processor. It instructs the computer's memory, arithmetic and logic unit, and input and output devices on how to respond to the processor's instructions. In order to execute the instructions, the components of a computer receive signals from the control unit. It is also called the central nervous system or brain of the computer. C. Memory Registers: A register is a small, temporary memory inside the CPU. The processor uses it to store data that it is currently working on. Registers come in different sizes, such as 16-bit, 32-bit, and 64-bit, and each has a specific role. Some store data, some store instructions, and others hold memory addresses. For example, the Accumulator (ACC) is an important register in the CPU. It holds one of the values used in calculations inside the Arithmetic and Logic Unit (ALU). Apart from registers, the internal memory (also called primary memory or main memory) is where data and instructions are stored temporarily while a program runs. This memory is called RAM (Random Access Memory). Every piece of data in RAM is stored at a unique location with an address, so the processor can access it quickly without searching the entire memory. Since RAM provides direct access to any data location, it is called Random Access Memory. Memory Unit is the primary storage of the computer. It stores both data and instructions. Data and instructions are stored permanently in this unit so that they are available whenever required. 3. Output Unit:
Stack and stack pointer Program counter and other CPU registers Details of opened files A process can be suspended temporarily and the execution of another process can be taken up. A suspended process can be restarted later. Before suspending a process, its details are saved in a table called the process table so that it can be executed later on. An operating system supports two system calls to manage processes Create and Kill - Create a system call used to create a new process. Kill system call used to delete an existing process. Five State Process Model A process can create a number of child processes. Processes can communicate among themselves either using shared memory or by message-passing techniques. Two processes running on two different computers can communicate by sending messages over a network. Files Management Files are used for long-term storage. Files are used for both input and output. Every operating system provides a file management service. This file management service can also be treated as an abstraction as it hides the information about the disks from the user. The operating system also provides a system call for file management. The system call for file management includes: File creation File deletion Read and Write operations Files are stored in a directory. System calls provide to put a file in a directory or to remove a file from a directory. Files in the system are protected to maintain the privacy of the user. Below shows the Hierarchical File Structure directory.
File Structure Directory Command Interpreter There are several ways for users to interface with the operating system. One of the approaches to user interaction with the operating system is through commands. Command interpreter provides a command-line interface. It allows the user to enter a command on the command line prompt (cmd). The command interpreter accepts and executes the commands entered by a user. For example, a shell is a command interpreter under UNIX. The commands to be executed are implemented in two ways: The command interpreter itself contains code to be executed. The command is implemented through a system file. The necessary system file is loaded into memory and executed. System Calls System calls provide an interface to the services made by an operating system. The user interacts with the operating system programs through System calls. These calls are normally made available as library functions in high-level languages such as C, Java, Python etc. It provides a level of abstraction as the user is not aware of the implementation or execution of the call made. Details of the operating system is hidden from the user. Different hardware and software services can be availed through system calls. System calls are available for the following operations: Process Management Memory Management File Operations Input / Output Operations Signals Signals are used in the operating systems to notify a process that a particular event has occurred. Signals are the software or hardware interrupts that suspend the current execution of the task. Signals are also used for inter- process communication. A signal follows the following pattern: A signal is generated by the occurrence of a particular event it can be the clicking of the mouse, the execution of the program successfully or an error notifying, etc. A generated signal is delivered to a process for further execution. Once delivered, the signal must be handled. A signal can be synchronous and asynchronous which is handled by a default handler or by the user- defined handler.
Common Types by Device/Use Case Desktop/Personal OS : For everyday computing (Windows, macOS, Linux/Ubuntu). Mobile OS : For smartphones and tablets (Android, iOS). Network OS (NOS) : Manages network resources and users (e.g., Windows Server, Linux). Embedded OS : For specific devices like smart TVs, cars, or ATMs (e.g., Linux variants). Real-Time OS (RTOS) : For systems needing strict deadlines, like medical devices or industrial controls (e.g., VxWorks). Types by Functionality/Architecture Single-User/Single-Tasking : One user, one task (older systems). Single-User/Multitasking : One user, multiple tasks (most modern PCs/mobiles). Multi-User : Allows multiple users to access the system simultaneously (servers, mainframes). Batch OS : Processes jobs in batches, without user interaction (early systems). Time-Sharing : Shares CPU time among many users/programs (modern interactive systems). Distributed OS : Manages multiple interconnected computers as a single system. Popular Examples Microsoft Windows : Most common desktop OS. Apple macOS : For Apple's Mac computers. Linux (e.g., Ubuntu, Fedora) : Open-source, popular on servers, supercomputers, and desktops. Android : Dominant mobile OS. Apple iOS : For iPhones and iPads. Components of Windows Operating System Windows OS components include the Kernel (resource management), User Interface (desktop, taskbar, Start Menu), File System (NTFS/FAT), Device Drivers , System Libraries (DLLs), Networking , Security , and Core Services (like LSASS, CSRSS) managing processes, memory, and user authentication, all working together in kernel and user modes for hardware interaction and software execution. Core Kernel-Mode Components Kernel (Ntoskrnl.exe): The core, manages memory, processes, threads, and hardware interaction. Hardware Abstraction Layer (HAL - hal.dll): Abstracts hardware, letting the OS talk to different hardware. Executive Services: Low-level functions like I/O, memory, security, and object management. Device Drivers: Software allowing the OS to communicate with peripherals (printers, graphics cards). Core User-Mode Components User Interface (UI): The visual part: Desktop, Taskbar, Start Menu, Windows, Icons. System Processes: o SMSS (Session Manager Subsystem): Starts user sessions. o CSRSS (Client/Server Runtime Subsystem): Manages console windows and APIs. o LSASS (Local Security Authority Subsystem Service): Handles security policies, logins, and tokens. o Winlogon: Manages user logins and secure attention sequence. o Svchost.exe: Hosts shared service processes. System Libraries (DLLs): Collections of code (e.g., Kernel32.dll for Win32 functions). Other Key Components
File System: Organizes data (NTFS), managing files, folders, and permissions. Networking: Protocols and services for network communication. Security Components: User authentication, access control. Boot Components: Boot Manager, Winload, NTLDR (older versions) handle startup. Applications & Utilities: Built-in tools like Notepad, Control Panel, File Explorer. Fundamental Components of the Microsoft Windows Operating System Microsoft Windows, one of the most widely used operating systems, features a user-friendly interface designed to simplify interaction with hardware and software. Its essential components create an organized environment for managing tasks efficiently.
Working with Files Understanding how to work with files and folders is an important part of using your computer. Once you understand how files and folder work, you'll use them all the time. In this lesson, we'll show you the absolute basics of working with files , including how to open files , move your files into folders , and delete files. There are many different types of files you can use. For example, Microsoft Word documents, digital photos, digital music, and digital videos are all types of files. You might even think of a file as a digital version of a real- world thing you can interact with on your computer. When you use different applications, you'll often be viewing , creating , or editing files. Files are usually represented by an icon. In the image below, you can see a few different types of files below the Recycle Bin on the desktop. A folder Windows uses folders to help you organize files. You can put files inside a folder , just like you would put documents inside a real folder. In the image below, you can see some folders on the desktop. File Explorer You can view and organize files and folders using a built-in application known as File Explorer (called Windows Explorer in Windows 7 and earlier versions). To open File Explorer, click the File Explorer icon on the taskbar, or double-click any folder on your desktop. A new File Explorer window will appear. Now you're ready to start working with your files and folders.
From File Explorer, double-click a folder to open it. You can then see all of the files stored in that folder. Notice that you can also see the location of a folder in the address bar near the top of the window. To open a file: There are two main ways to open a file: Find the file on your computer and double-click it. This will open the file in its default application. In our example, we'll open a Microsoft Word document ( Cover Letter.docx ), which will open in Microsoft Word.
To select specific files from a folder, press and hold the Control key on your keyboard, then click the files you want to select. To select a group of files from a folder, click the first file, press and hold the Shift key on your keyboard, then click the last file. All of the files between the first and last ones will be selected. Selecting all files
You can also hold the Alt key on your keyboard, then click and drag the folder to the desktop to create a shortcut. Chapter Two: Word Processing Word processing is the creation, editing, formatting, storage, and printing of text documents using specialized software (a word processor ) on a computer, allowing for features like spell-check, tables, images, and easy text manipulation (copy/paste, delete, move) far beyond a typewriter's capabilities, with popular examples including Microsoft Word , Google Docs , and LibreOffice Writer. Key Functions Creation & Editing: Typing, inserting, deleting, moving, and copying text. Formatting: Changing font style, size, colour, bold, italics, underlining, and applying page layouts like margins and columns. Enhancements: Adding images, tables, charts, and clipart. Review: Built-in spell-check and grammar tools. Storage & Output: Saving documents electronically and printing hard copies. Common Word Processors Microsoft Word (Part of Microsoft Office) Google Docs (Cloud-based) LibreOffice Writer (Free & open-source) Apple Pages (For Apple devices) Use of Word Processor Word processing – the use of a program (software application) running on a computer that allows users to create, edit, format, and store documents.
Steps to create a new word processing document (Word, Office 365):
Editing a document – making revisions to a document, focusing on correcting errors, improving the accuracy of language, rearranging, making words and sentences clearer and more effective, etc. Editing in word processing may include the following tasks: Adding text (terms, phrases, paragraphs, etc.) Deleting a part of a text Copying text Moving text Pasting text Checking for grammar and spelling Formatting text Select Text Before editing text, you’ll need to select it. This is also sometimes called “highlighting text.”