3i Infotech Placement: Sample Questions 427 - 429 of 1245
Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.
Question 427
Explanation
- A header file is a file containing C declarations and macro definitions to share between several source files.
- Included using C pre-processing directive ‘ include’ .
Header Files Serve Two Purposes
- System header files declare the interfaces to parts of the operating system.
- Supply declarations and definitions to invoke system calls and libraries.
- Programmers՚ header files contain declarations for interfaces between the source files of their program.
- Group of related declarations and macro definitions needed in several different source files are combined in header file.
Question 428
Explanation
- A region is a continuous area of a process՚s address space.
- Kernel maintains region table in memory local to the process.
- Regions are sharable among the process.
Question 429
Question MCQ▾
Memory Management in Operating Systems is done by
Choices
Choice (4) | |
---|---|
a. | Memory Management Unit |
b. | Kernel |
c. | Memory management software of the Operating System |
d. | None of the above |
Answer
c.Explanation
- Memory management in operating systems is done by memory management part of the Operating System.
- This part also moves processes back and forth between main memory and disk.
- Keeps track of each and every memory location- allocated or free.
- There are two task of memory management:
- When the program requests a block of memory, a part of the memory manager called the allocator assigns that block to the program
- When a program no longer needs previously allocated memory block- it is made available for assignment