Tag: operating systems

Questions Related to operating systems

  1. 1 Run with root user

  2. 2 Run with &

  3. 3 Run with root user using &

  4. 4 None


Correct Option: D
  1. 1 They never releases the memory utilized

  2. 2 They release the memory but kernel does not use them

  3. 3 Since they are running

  4. 4 It’s a false statement


Correct Option: B
  1. 1 Its not possible

  2. 2 use isused() function

  3. 3 Try to open file with locking enabled

  4. 4 Try to write the file after opening


Correct Option: C
  1. 1 Use filelock()

  2. 2 use lockfile()

  3. 3 Use lockfd()

  4. 4 use fcntl()


Correct Option: D
  1. 1 Use ls -l

  2. 2 Use sizeof()

  3. 3 Use filesize()

  4. 4 Use fstat()


Correct Option: D
  1. 1 Use getmemory()

  2. 2 Use sysctl()

  3. 3 Use freemem()

  4. 4 Use malloc()


Correct Option: B
  1. 1 A port to connect printer 2

  2. A port to connect keyboard

  3. 3 An abstraction to pass data across processes

  4. 4 A hardware device


Correct Option: C
  1. 1 A mechanism to share non-sharable resources

  2. 2 A mechanism to access memory very fast

  3. 3 A mechanism to access kernel details

  4. 4 None


Correct Option: A
  1. 1 A printer queue

  2. 2 An IPC mechanism with destructive execute

  3. 3 An IPC mechanism with destructive write

  4. 4 An IPC mechanism with destructive read


Correct Option: D
  1. No differences

  2. 2 IPC mechanism vs Non-IPC mechanism

  3. 3 Non-destructive read vs destructive read

  4. 4 Destructive read vs non-destructive read


Correct Option: C