#Hashmap run time

9 messages · Page 1 of 1 (latest)

hollow stirrup
#

I have two hashmaps. Does locking both hashmaps at same time leads to longer running times than locking one HashMap, processing, unlocking it and locking the next one?

earnest gustBOT
#

This post has been reserved for your question.

Hey @hollow stirrup! Please use /close or the Close Post button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

lost blade
#

depends on what you do and how your program runs

#

also, define "processing"

#

how do you process it

worldly umbra
#

And why not use a concurrent hashmap?

#

You'll be able to just process things multithreaded

knotty ether
#

You can use ConcurrentHashMap for Concurrency