Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
G

gospidey

@gospidey
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • using a private variable for the lock of synchronized block
    G gospidey

    the list used as a lock is an instance of class ArrayList. According to specification ArrayList implementation, an Arraylist is not synchroized, ie if multiple threads start accessing and or modifying the arraylist the state(data) of arraylist may get corrupted. So the instance "list" is used as lock so that block of code is synchronized and only one thread can access the list at any given point of time. do rate the answer or correct me if i am wrong. thanx Shreyas Rane

    Java database algorithms help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups