232 views

1 Answer

0 votes
0 votes

They want to ask flow of a transaction....

 

comparing with C program

#include<stdio.h>
int main()
{
      int a;
      scanf("%d",&a);
      f1(a);
}

void f1( int k )
{
      if( k == k1 )  // Assume k1 and k2 are constants
             f2();
      else if( k == k2 )
             f3();
      else
             f4();
}

just like, main() ----> f1() ----> f2() or f3() or f4()

But who will call main() ..... in our case OS right ?

Actually, Option C is not exact right answer... it is better among them

Related questions

0 votes
0 votes
0 answers
1
Kushal Sharma asked Dec 26, 2017
299 views
Indicate how the recovery schema works on single user environment if system failsi) After the transaction starts and before read.ii) After the read and before write.iii) ...
2 votes
2 votes
1 answer
2
techbrk3 asked Nov 9, 2017
1,499 views
(TS: time stamp)If TS (T) < Read-TS (Q), then write is rejected and T is rolled backIf TS (T) < write-TS (Q), then write is rejected and T is rolled backBoth (A) and (B)N...
0 votes
0 votes
1 answer
3
3 votes
3 votes
1 answer
4