MSc Electronics, ICT
MSc Electronics, ICT
Originally posted by Roul Ravashimka:
But what is two clients invoke the getInstance method at the same time?
What does happen?
[/QB]
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
Originally posted by Roul Ravashimka:
what happens if two clients try to access the cache at the same time?
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
That depends on how cache access is implemented. Your code doesn't show that.
MSc Electronics, ICT
Originally posted by Roul Ravashimka:
i thought that two users couldn't access the same cache at the same time. I thought the cache was locked while a user reads the cahce.
MSc Electronics, ICT
MSc Electronics, ICT
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |