You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: notes/questions.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -761,6 +761,11 @@ int Integer
761
761
>
762
762
> If one thread is writing or updating long value, it's possible for another thread to see half value (fist 32-bit).While reading/writing a volatilelong or double (64 bit) is atomic.
763
763
764
+
67.Which one would be easy to write? synchronization code for10 threads or 2 threads?
765
+
>In terms of writing code, both will be of same complexity because synchronization code is independent of a number of threads.
766
+
>Choice of synchronization though depends upon a number of threads because the number of thread present more contention,
767
+
> so you go for advanced synchronization technique e.g. lock stripping, which requires more complex code and expertise.
768
+
764
769
## SpringBoot
765
770
1.What is the difference between JavaEE and Spring?
766
771
>JavaEE is standardized (now JakartaEE), runs on containers like WildFly.<br>
0 commit comments