atomic
source for native sun.misc.Unsafe operations in java
i\'ve downloaded \"openjdk-6-src-b23-05_jul_2011\" to have a look at the native implementations for the methods in sun.misc.Unsafe. e.g. compareAndSwapInt(...) but i am not able find anything in the d[详细]
2023-03-21 16:48 分类:问答Making a sequence of SQL statements atomic
I need to make the following sequence of steps in a sproc atomic. Here is an approximate simplified example:[详细]
2023-03-21 05:00 分类:问答atomic memcpy suggestion
While testing a program for scalability, I came across the situation where I have to make my memcpy operation as atomic operation . I have to copy 64bytes of data from one location to other .[详细]
2023-03-20 07:01 分类:问答initialization of atomic variables in c++0x
Can atomic variables in c++0x be initialized globally? For e.g. atomic_int turnX = 5; i开发者_开发百科nt main(){[详细]
2023-03-20 05:34 分类:问答Is the "switch" statement evaluation thread-safe?
Consider the following sample code: class MyClass { public long x; public void DoWork() { switch (x) { case 0xFF00000000L:[详细]
2023-03-19 20:45 分类:问答Is it atomic this "Int64" surrogate?
I am going to create a \"long\" (Int64) surrogate which has to be atomic, so its copy in a concurrent application will be inherently safe. I cannot use an Int32 because it spans too short as range.[详细]
2023-03-19 20:17 分类:问答java - Atomic access to field within object
If I need atomic 开发者_如何学Goaccess to an int field inside an object, is it sufficient to declare the field as an AtomicInteger or do I need to use an AtomicIntegerFieldUpdater? (and why?)Using an[详细]
2023-03-19 14:56 分类:问答how can I convert non atomic operation to atomic
I am trying to understand atomic and non atomic operations.With respect to Operating System and also with respect to C.[详细]
2023-03-18 23:29 分类:问答Is volatile int in C as good as std::atomic<int> of C++0x?
I need to have atomic variables in my program. Previously I was using std::atomi开发者_StackOverflow中文版c<int>, but the platform in which I\'m working now does not have a g++ compiler that sup[详细]
2023-03-18 02:56 分类:问答how to implement an atomic assignment on AIX/powerpc?
I\'m porting a kernel extentsion to 32/64 bit AIX on multi-processor PowerPC, written in C. I don\'t need more than atomic read operation and atomic write operations (I have no use for fetch-and-add,[详细]
2023-03-17 22:50 分类:问答