When designing the file structure for an operating system, what attributes are considered ?
Correct Answer
Commonly, the different attributes for a file structure are naming,size, identifier, a level of protection, supported file types and location for the files
Operating Systems problems
Search Results
1. What resources are used when a thread is created? How do they differ from those when a process is created?
Correct Answer: When a thread is created the threads does not require any new resources to execute the thread shares the resources like memory of the process to which they belong to The benefit of code sharing is that it allows an application to have several different threads of activity all within the same address space Whereas if a new process creation is very heavyweight because it always requires new address space to be created and even if they share the memory then the inter process communication is expensive when compared to the communication between the threads
2. What are the stipulations of C2 level security?
Correct Answer: Time taken for switching from one process to other is pure over head Because the system does no useful work while switching So one of the solutions is to go for threading when ever possible
Correct Answer: User data: Modifiable part of user space May include program data, user stack area, and programs that may be modified User program: The instructions to be executed System Stack: Each process has one or more LIFO stacks associated with it Used to store parameters and calling addresses for procedure and system calls Process control Block (PCB): Info needed by the OS to control processes
9. Define latency, transfer and seek time with respect to disk I/O.
Correct Answer: Seek time is the time required to move the disk arm to the required track Rotational delay or latency is the time it takes for the beginning of the required sector to reach the head Sum of seek time (if any) and latency is the access time Time taken to actually transfer a span of data is transfer time
Correct Answer: A binary semaphore is one, which takes only 0 and 1 as values They are used to implement mutual exclusion and synchronize concurrent processes