Consider a multi-threaded program with two threads T1 and T2. The threads share two semaphores: s1 (initialized to 1) and s2 (initialized to 0). The threads also share a global variable (initialized to 0). The threads execute the code shown below.
Which of the following outcomes is/are possible when threads T1 and T2 execute concurrently?
c
- AT1 runs first and prints 1, T2 runs next and prints 2
- BT2 runs first and prints 1, T1 runs next and prints 2
- CT1 runs first and prints 1, T2 does not print anything (deadlock)
- DT2 runs first and prints 1, T1 does not print anything (deadlock)

