The result I got is as follows:
Pr of t1 = 5,Pr of t2 = 5,Pr of t3 = 5
Pr of t1 = 3,Pr of t2 = 6,Pr of t3 = 7
inside no args run
Run by one
�.
Run by one
Inside if block
inside no args run
Run by three
�.
Run by three
inside no args run
Run by two
�.
Run by two
Final run by main
Though t3 has max priority, t1 is run first.
value for NORM_PRORITY is 5, but I haven't given any
Thread a priority of 5. Then how can the if loop execute?
Can anybody pls explain