I know it is possible to create a TestCase or TestSuite with the wizard within JUnit, but how does one sync the code after the class under the test has been modified, such as method signature modification or newly added methods. I would like my TestCases to be able to sync up (remove or add) those changed methods/parameters/method signat...
Hi,
In the context of data-structures synchronization, can someone clarify the difference between "lockless" and "non-blocking"? These terms seem to be used interchangeably by a lot of people but I'm not yet sure if there isn't some subtle difference hidden somewhere.
I mean lockless is "without locks" and non-blocking is more like gua...
Hi everyone.
I have a window that contains a grid with two columns.
the first column is filled with a TreeView.
the second column is filled with a ListBox.
Both controls are bound to a CollectionView that wraps my data - an ObserveableCollection of my data class type. The ListBox is set to keep syncronized with the view (SyncToCurrentI...
What do you use for data synchronization?
I have been working with Microsoft Sync Framework for a couple months now and I'm not sure if I like it. The concept is great but I've had trouble with remote sync. There is no remote file sync provider, but I did manage to write one with a lot of trouble. There is also no way to show progress t...
The Machine is Dual-Core, the OS uses a Multi-Processor kernel. In order to run some performance assessments, I want to set the thread-affinity of the JVM to a single core. However, I am worried that I will get skewed performance measurements as the JVM may be unaware that it is now constrained to a single core, but still using multi-pro...
Did any body implemented a Monitor with signaling (wake up waiting threads) using a mutex and condition variables in C++.
I dont know how to start. Any sample code or online article will be great.
Are there any open source libraries who have implemented these?
I need for windows and linux. But to start with windows(win32) will be fine....
Hi, I am facing sync related issue in multi threading.
I have an shared library which applications use to build there applications. From the library
I have created a thread which listen to the request coming and process it its is real time thread.From the library i have invoked an API which is sync in nature which will wait for response ...
Does @synchronized not use "lock" and "unlock" to achieve mutual exclusion? How does it do lock/unlock then?
The output of the following program is only "Hello World".
@interface MyLock: NSLock<NSLocking>
@end
@implementation MyLock
- (id)init {
return [super init];
}
- (void)lock {
NSLog(@"before lock");
[super lock];
...
What is the difference between event objects and condition variables?
I am asking in context of WIN32 API.
...
Hello,
In the application I am designing, I have to communicate with a device and store a history of data readings in a database. The device is essentially a sensor that spits out numbers via the serial port. The user end of the application is a RubyOnRails interface that allows the user to view this data and configure the device.
I a...
Can I do any of the following? Will they properly lock/unlock the same object? Why or why not? Assume there are many identical threads using global variable "obj", which was initialized before all threads started.
1.
@synchronized(obj) {
[obj release];
obj = nil;
}
2.
@synchronized(obj) {
obj = [[NSObject new] autorelea...
This is actually a design question for firmware in an embedded system
I have two ISRs (of same priority) executed independently .
These ISRs are triggered when the h/w generates data.
I want a mechanism which must be put in place to synchronise between task1 and task2. task 2 must know about the certain values calculated in task1 which ...
Hi all,
I have created 3 storyboards in a usercontrol resources which animates controls inside the usercontrol. But the problem is that i have to start each animation on textbox's gotfocus events. I cant able to synchronize these 3 storyboards on each textbox's events. All works fine if i waited for 1 animation to complete and then focu...
Pushlocks are used internally by windows as synchronization primitives for some of its operations, specifically as part of the memory manager.
What exactly is a pushlock? How is it different from a spinlock?
...
The Wikipedia entry doesn't give details and the RFC is way too dense. Does anyone around here know, in a very general way, how NTP works?
I'm looking for an overview that explains how Marzullo's algorithm (or a modification of it) is employed to translate a timestamp on a server into a timestamp on a client. Specifically what mechanism...
Hello.
Currently outlook takes all list data and synchronises it with outlook.
Is it possible and how to synchronise only items in a specific view? I`m only interested in my items in the list.
...
I'm programming an interprocess communication module (Process A and Process B).
Is there any way the communication thread in B can run (be unlock) as soon as process A finishes a specific action, I mean without B doing any polling nor B waiting too much after A finishes its action?
Which are the concepts/models/design patterns governin...
I have a a bunch of WPF UserControls that internally trigger some animations upon user interactions. All animations have repeatbehavior = "true" and all animations have the same duration. Now I would like synchronize all those animations on one timeline so they are fading in and out in sync. No matter when the user triggerd the animation...
Currently, I have two database servers (s1 and s2).
both server contains the same database MyData and data only update on s1.
What I want to do is that I want both databases contains same data all the time in both server.
Could anyone point out the good way to do this without slowing down s1?
...
I'm having thread contention in an OLTP app. While reviewing the code involved, I found the following:
lock (_pendingTransactions)
{
transaction.EndPointRequest.Request.Key = (string)MessageComparer.GenerateKey(transaction.EndPointRequest.Request);
if (!_pendingTransactions.ContainsKey(transactio...