Forum: Threads and Synchronization

Questions Multi-threading and Synchronization

20-12-2017 07:47:59 AM
User Image
Sekhar

Newbie

Joined: Jun 1, 2017

Points: 100

Threads: 6

Posts: 1

Thread class

what is a thread and how many ways of creating and which one preferred... More

Last edited by Sekhar: 20-12-2017 08:00:08 AM
Replies: 0 | Views: 79


No Posts Available
18-12-2017 06:41:12 PM
User Image
ali032

Newbie

Joined: Jul 16, 2017

Points: 100

Threads: 2

Posts: 0

thread and Synchronization

Between these two which one will be easy to write? Synchronization cod... More

Last edited by ali032: 18-12-2017 06:45:00 PM
Replies: 0 | Views: 80


No Posts Available
16-12-2017 10:51:06 AM
User Image
ArifKhan

Newbie

Joined: Jun 25, 2017

Points: 175

Threads: 109

Posts: 92

We should implement Runnable interface or extend Thread class.

We should implement Runnable interface or extend Thread class. What... More

Last edited by ArifKhan: 16-12-2017 11:00:00 AM
Replies: 0 | Views: 78


No Posts Available
30-11-2017 03:18:07 PM
User Image
Venubabu99

Newbie

Joined: Nov 30, 2017

Points: 100

Threads: 1

Posts: 0

Can multiple threads read from ConcurrentHashMap same time?

Can multiple threads read from ConcurrentHashMap same time? More

Last edited by Venubabu99: 30-11-2017 07:00:41 PM
Replies: 1 | Views: 183
In ConcurrentHashMap, threads acquire entry level lock. Hence Multiple threads can ...
30-11-2017 07:00:41 PM
21-8-2017 10:15:48 AM
User Image
Deshmukh G

Newbie

Joined: Apr 21, 2017

Points: 120

Threads: 41

Posts: 24

what is the default name of the thread?

what is  the default name of the thread? How can we get thread na... More

Last edited by Deshmukh G: 30-11-2017 10:43:04 AM
Replies: 2 | Views: 265
Default name of the Thread is : Thread-0  we can get thread name  in this way...
30-11-2017 10:43:04 AM
29-11-2017 08:09:32 AM
User Image
Chandu1

Newbie

Joined: Jul 2, 2017

Points: 100

Threads: 9

Posts: 5

Multithreading

What is ReentrantLock in Java . More

Last edited by Chandu1: 29-11-2017 08:15:00 AM
Replies: 0 | Views: 79


No Posts Available
28-11-2017 07:32:05 AM
User Image
Jay4606

Newbie

Joined: Apr 20, 2017

Points: 100

Threads: 4

Posts: 5

How do we find if our program has a deadlock

How do we find if our program has a deadlock ? I got th... More

Last edited by Jay4606: 28-11-2017 07:45:00 AM
Replies: 0 | Views: 70


No Posts Available