Os Lab-01
Os Lab-01
1. When a job fails once, it must be scheduled to be completed, and it may take a long time
to complete the task.
2. Computer operators must have full knowledge of batch systems.
3. The batch system is quite difficult to debug.
4. The computer system and the user have no direct interaction.
5. If a job enters an infinite loop, other jobs must wait for an unknown period of time.
Disadvantage:
5. Real-Time System-
1. In Real-Time Systems, each job carries a certain deadline within which the job is supposed
to be completed, otherwise, the huge loss will be there, or even if the result is produced, it will
be completely useless.
2. it can be of two types : 1) strict deadly time bounded. 2) time bounded.
3. used in aircraft,defense missiles,satellite,telecommunication.
macOS-
Compiler
The code which is expanded by the preprocessor is passed to the compiler. The compiler
converts this code into assembly code. Or we can say that the C compiler converts the
pre-processed code into assembly code.
Assembler
The assembly code is converted into object code by using an assembler. The name of the
object file generated by the assembler is the same as the source file. The extension of the
object file in DOS is '.obj,' and in UNIX, the extension is 'o'. If the name of the source file is
'hello.c', then the name of the object file would be 'hello.obj'.
Linker
the job of the linker is to link the object code of our program with the object code of the library
files and other files. The output of the linker is the executable file.
Loader
The loader will then load the executable file for the execution.
Output: