K
K
Karina2015-03-22 23:15:05
Java
Karina, 2015-03-22 23:15:05

Is it possible to make a separate variable for different threads?

An essence here in what: in a method I create threads. It is necessary that when I increase the value in one of the threads, this variable will increase the value ONLY in this thread and in no other thread. Thanks everyone for the replies.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
one pavel, 2015-03-22
@iKapex

habrahabr.ru/post/108016

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question