concurrency
SSE instructions: which CPUs can do atomic 16B memory operations?
Consider a single memory access (a single read or a single write, not read+write) SSE instruction on an x86 CPU. The instruction is accessing 16 bytes (128 bits) of memory and the accessed memory loca[详细]
2023-04-11 03:05 分类:问答Why should I choose GCD over NSOperation and blocks for high-level applications?
Apple\'s Grand Central Dispatch reference says: \"...if your application needs to operate at the Unix level of the[详细]
2023-04-10 21:30 分类:问答Scala final vs val for concurrency visibility
In Java, when using an object across multiple threads (and in general), it is good practice tomake fields final. For example,[详细]
2023-04-10 16:49 分类:问答Is it possible to call a method of a locked object from another thread?
when thread 1 has the intrinsic lock of an object because of synchronized(object) { ... } is it possible to call[详细]
2023-04-10 16:34 分类:问答Multiple Fork example in C
I am trying to have a program that uses multiple forks. I used this example to get myself started Multiple fork() Concurrency[详细]
2023-04-10 15:22 分类:问答Implementing a timer for an auto-logoff feature in an embedded system (Java)
I\'ll try my best to explain the situation at hand. I\'m developing an auto-logoff feature for an authentication application that runs in an embedded system and should work cooperatively with its own[详细]
2023-04-10 09:30 分类:问答How to get rid of this "static method should be acessed in a static way" in java?
I have the following piece of code in a java application Thread.currentThread().sleep(10000); However eclipse is showing me the following warning:[详细]
2023-04-10 03:28 分类:问答Limiting to at max N concurrent calls to a static method in Java
Consider the following static method: public void static foo() { // some heavy operation operating on a shared resource.[详细]
2023-04-10 02:55 分类:问答Minimum time lock in java
I\'m looking for a way to limit access to a method in java to no more than once every X seconds. Here\'s my situation :[详细]
2023-04-09 22:11 分类:问答Optimistic concurrency with Entity Framework and MySQL
I\'m c开发者_StackOverflowurrently developing an app using Entity Framework 4.1 and MySQL. I want to use optimistic concurrency and therefore need to create a table structure which allows EF to detect[详细]
2023-04-09 20:13 分类:问答