Skip to main content

Posts

Showing posts with the label Outlines

OS Outline

Operating System - Overview OS Definition Memory Management  Processor Management  Device Management  File Management  Security  Error Detecting Aids  Job Accounting Operating System - Types  Batch Operating System Time-sharing Operating System Distributed Operating System Network Operating System Real-time Operating System Hard real-time Operating System Soft real-time Operating System Operating System - Services Program Execution  I/O Operations  File System Management  Communication  Error-handling  Resource Management  Protection  Operating System - Properties  Batch-processing Multi-tasking Multi-programming Interactivity  Real-time system Distributed Environment  Spooling  Operating System - Process Process Program Process Control Block (PCB) Operating System - Process Scheduling Definition Process Scheduling Queues Job Queue Ready Queue Device Queue Two-State Process Model  Running...

CPP

Basics Downloading and installing CodeBlock Creating and explaining first project Hello World – the terms (keyword, main, header file) Keyword – Keywords are reserved words for compiler whose purpose is already defined in compiler and user cannot use for personal use. E.g if, else, double, switch main – main is a necessary function to define to execute C/C++ program. Without main, we cannot run our program. Header file  - header file contains functions that perform certain tasks  Characters \n, \t, \a data types: int – 4b, float – 4b, double – 8b, char – 1b, string – equal to the number of characters variable: rules to define a variable cannot start with numbers and special characters. Only special character acceptable is _ e.g. _age Camel case: weightInKg Snake Case: weight_in_kg declaration vs initialization arithmetic operations (+, -, *, /, %) input from user – cin, getline() relational operators (>=, <=, >, <, ==, !=) if selection statement if…else – double s...