OS Processes

    OS Processes
    What is the degree of multiprogramming?
    Multiprogramming means the number of processes are in the ready states. To increase utilization of CPU, Multiprogramming is one of the most important abilities of OS. Generally, a single process cannot use CPU or I/O at all time, whenever CPU or I/O is available another process can use it. By doing this CPU utilization is increased.
    OS Processes
    The address of the next instruction to be executed by the current process is provided by the __________
    The address of the next instruction to be executed by the current process is provided by the Program Counter. After every instruction is executed, the Program Counter is incremented by 1 i.e. address of the next instruction to be executed. CPU fetches instruction from the address denoted by Program Counter and execute it.
    OS Processes
    What is the main function of the command interpreter?
    The main function of command interpreter is to get and execute the next user-specified command. Command Interpreter checks for valid command and then runs that command else it will throw an error.
    OS Processes
    A set of processes is deadlock if __________
    Deadlock is a situation which occurs because process A is waiting for one resource and holds another resource (blocking resource). At the same time another process B demands blocking a resource as it is already held by a process A, process B is waiting state unless and until process A releases occupied resource.
    OS Processes
    In operating system, each process has its own __________
    In Operating Systems, each process has its own address space which contains code, data, stack and heap segments or sections. Each process also has a list of files which is opened by the process as well as all pending alarms, signals and various signal handlers.
    OS Processes
    The context of a process in the PCB of a process does not contain __________
    The context of a process in the PCB of a process does not contain context switch time. When switching CPU from one process to another, the current context of the process needs to be saved. It includes values of the CPU registers, process states, memory-management information.
    OS Processes
    In Unix, Which system call creates the new process?
    In UNIX, a new process is created by fork() system call. fork() system call returns a process ID which is generally the process id of the child process created.
    OS Processes
    A process stack does not contain __________
    Process stack contains Function parameters, Local variables and Return address. It does not contain the PID of child process.
    OS Processes
    To access the services of operating system, the interface is provided by the ___________
    To access services of the Operating System an interface is provided by the System Calls. Generally, these are functions written in C and C++. Open, Close, Read, Write are some of most prominently used system calls.
    OS Processes
    The OS X has ____________
    OS X has a hybrid kernel. Hybrid kernel is a combination of two different kernels. OS X is developed by Apple and originally it is known as Mac OS X.