Sri Vishnu Mandaleeka

Greenhorn
+ Follow
since Jul 07, 2006
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sri Vishnu Mandaleeka

Hey

Servlet Context: Its the oject through which we can see entire weapplication.

ServletConfig: Its the oject which is applicale to a paticular servlet.

PageContext: its the oject which is available to the paticular JSP page.
I hope this works for U. But for examples and detailed soluton gofor HFSJ.


Vishnu
12 years ago
hey

in the example of the class XYZ. when thread1 tries to access the sync methods it needs to get the lock on the oject. ie synchronized (this) right?

my doubt is does "this" represent instance of the class from which the thread is called. or is it something else. Can someone tell me aout Class Locks for staic methods synchroniztion.

one more thing, in that example if thread1 gets the lock and is ale to access the synch method abc(), does the thread need to reaquire the lock for get access to the synch method def() or it can access the method directly as it holds the lock.

Thanks in advance
[ July 28, 2006: Message edited by: Sri Vishnu Mandaleeka ]