Before C++ true and false were represented as 1 and 0 respectively. But C++ uses both. Other than 0 all values represent true. Library function exit() : exit(0) : Normal Exit exit(other numerical value) : Error / Abnormal exit. This function is present in ‘process.h’ Library function getche(): This function is present in conio.h No … Read moreImportant Things to Note About Loops and Decision in C++
White-space is completely ignored by compiler : Not True. There are few restrictions apply to this rule. e.g. Preprocessor directives must be in same line. ‘cout’ could not be broken. Cout, Cin are objects : These are overloaded. Cout – ‘<<‘ (Put to or insertion operation) and ‘>>’ (extraction or get operator). Directives : Preprocessor … Read moreC++ Basics Which May Have Been Skipped In Class
The design goals of operating systems are : POSIX Compliance : POSIX (Portable operating system interface bases on Unix) is an IEEE standard 1003.1-1988. This standard helps in bringing comptibility among the various OSes. Extensibility : It is the ability of an OS to grow and change over time, according to the changing requirements of … Read moreDesign Goals of Operating Systems.
Various types of operating systems are : Single User OS : There is only one user and only his/her programs in the system memory. So there are not security issues too. This type of OS is called a ‘single user mono programming‘. e.g. DOS (Disk operating system) Multi-User OS : System is one but it … Read moreTypes of Operating Systems.
Every time a computer is turned on a monitor program is loaded from the secondary memory into main memory, which takes control of the computer and provides an interface to interact. Steps involved in booting process of a general OS : Basic Input Output System (BIOS) is stored in ROM, which capable of doing I/O … Read moreHow operating system boots (booting process)?
The objectives of an operating system are : Providing the ‘user-friendly’ interface so that the user need not bother about the underlying hard-ware. The commands given by user in an natural language are interpreted by the operating system, which in turn uses the hardware to get the required task done. Creating an environment for other … Read moreWhat are Objectives of an operating system?
When the system is switch on, the operating system is automatically loaded into the main memory and it takes control of the computer system. The operating system provides an interface to the user for interaction with the machine by way of managing files, executing a program, or printing an output etc. The software running on … Read moreWhat is an Operating System?
An interpreter is a program which reads and executes the source code program line by line. It does not translate the source code into machine code. Therefore, an interpreter is also called program execution environment. The designer of an interpreter goes through the source language, and makes a list of the the operations required to … Read moreWhat is an Interpreter in Computers?
There are four ways a computer system communicate with I/O devices. Direct control Programmed I/O Interrupt driven I/O Direct memory access Direct control : Old and obsolete technique. CPU interact directly with I/O devices with the help of dedicated program. Processing is extremely slow. Programmed I/O : CPU and I/O devices communicates through ‘Device Status … Read moreWays Computer System Communicate with I/O Devices.
Principle of ‘locality of reference‘ : This principle suggests that at any given time, the CPU will be accessing memory in a localized region of memory. When the instruction is found in the cache, the transaction is called a hit else a miss. When cache memory sits along side the main memory then the architecture … Read moreCPU Cache Memory Points to Remember.