1. Write, compile and run a java program which does the picomputation.
a) without synchronization
Here a sample output:
b) with synchronized keyword
c) with locks
Here a sample output:

Output N> Debugger Console X | Test (run) P1 3.133582091558405 Number of threads is 4 Time with 31 milliseconds BUILD SUCCESSFUL (total t ime : 0 seconds) Show transcribed image text
Expert Answer
An answer will be send to you shortly. . . . .