in Operating System closed by
1,154 views
1 vote
1 vote
closed as a duplicate of: GATE CSE 2023 | Question: 13
Which of the following option guarantee that a computer system transit from user mode to kernel mode
  1. malloc call
  2. system call
  3. function call
  4. page fault
in Operating System closed by
1.2k views

2 Comments

page fault and system call.

Option (B,D)
1
1

It says “guarantee” , so Page fault and systemcall can be the answer . Had it been “may invoke directly or indirectly “ , “malloc()” could also be included.

malloc isn’t provided by the OS, nor is it a system call; it is a library function that uses system calls to allocate and deallocate memory. In most implementations of malloc, these system calls involve at least one of:

  • sbrk
  • mmap

(reference)https://www.cs.usfca.edu/~mmalensek/cs326/assignments/project-3.html

2
2

1 Answer

0 votes
0 votes
page fault and system call
Answer:

Related questions