The lock tag has no wiki summary.
0
votes
0answers
14 views
hibernate transaction will lock the row in table(MySQL) [migrated]
I am using Hibernate3.2 in my DAO layer. I need to know, hibernate will do the row level lock after transaction is started. Hibernate do the lock after start the transaction or while commit the ...
0
votes
2answers
145 views
ThreadPool implementation
The following code is a self-implementation of the static class ThreadPool in C#, only the QueueUserWorkItem (the simpler method), written to practice multithreading in the .NET environment and ...
2
votes
1answer
276 views
Mutex implementation for uniprocessor bare metal embedded OS
I wrote this recently for one of my projects, any error you guys can spot or a feature which could be implemented without eating up resources or some optimisations ? Oh and it isn't meant for Multi ...
1
vote
1answer
202 views
std::lock implementation in C with pthreads
I messed a little bit with pthreads and needed an alternative to the C++11 function std::lock (2 args are enough), this is what I came up with:
void lock(pthread_mutex_t* m1, pthread_mutex_t* m2) {
...