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
Since i am right now working on that it should maybe its own card.
Some details for anyone interested.
I am not using Javas implementation of ConcurrentMaps due to the nature of the implementation.
I use Guavas approach instead.
The approach is not as good as Javas because in Javas case you can have as many threads as you want access the Map and only if the same node is tried to be accessed is there a synchronization happening, while guavas approach is a pool system where the amount of concurrency you define creates that amount of pools and each pool can only be accessed by 1 thread at a time.
This can/will lead up to a bit more synchronization but if you only work with a couple threads which is very likely you barely will feel that especially if your concurrency level is high enough.
The text was updated successfully, but these errors were encountered:
Since i am right now working on that it should maybe its own card.
Some details for anyone interested.
I am not using Javas implementation of ConcurrentMaps due to the nature of the implementation.
I use Guavas approach instead.
The approach is not as good as Javas because in Javas case you can have as many threads as you want access the Map and only if the same node is tried to be accessed is there a synchronization happening, while guavas approach is a pool system where the amount of concurrency you define creates that amount of pools and each pool can only be accessed by 1 thread at a time.
This can/will lead up to a bit more synchronization but if you only work with a couple threads which is very likely you barely will feel that especially if your concurrency level is high enough.
The text was updated successfully, but these errors were encountered: