python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Does one need to declare java synchronization mechanisms (locks, ,semaphores etc) as volatile?
If a lock/semaphore is being used by multiple threads for synchronization, does one need to declare it as volatile? Are the member variables of locks/semaphores itself guaranteed to reflect the latest...
Gaurav
Votes: 0
Answers: 2
MYSQL8. Why is transaction 2 locked in this situation?
READY
# ready
CREATE TABLE table_a
(
id int PRIMARY KEY AUTO_INCREMENT,
col_1 INT,
INDEX idx_a (col_1)
) ENGINE = innodb;
id
col_a
1
10
2
15
3
20
4
25
Trnasaction 1
STAR...
bbang
Votes: 0
Answers: 1
Writing an append only dict to disk avoiding thread locking
I have a dict which has 20,000 keys and total size of dict is 150MB. I dump the dict via pickle to disk every hour and then load the pickle file on program startup.
Here is the gist of the writing cod...
dark knight
Votes: 0
Answers: 1
How to acquire lock on a table and not let other transaction get read access?
I am having a nodejs program which uses sequelize to create tables and insert data based on it.
Now, in future we are going to have multiple instances of the program and so we don't want multiple inst...

Ashutosh Tiwari
Votes: 0
Answers: 2