synchronization Questions
5
I want to synchronize data, therefore I have a data object containing the current state. When this is changed I would like to set an attribute on the object so that I can filter by this when syncin...
Athome asked 8/7, 2015 at 17:30
5
Solved
Are Session Beans (stateless session beans, stateful session beans) Synchronized?
Equivocate asked 21/5, 2009 at 3:50
0
Preamble
I wrote a mobile application which should show upcoming events. The app downloads it's data from server. Data is prepared in batches once every 24 hours and it's ready to be fetched after...
Emelyemelyne asked 18/6, 2016 at 11:36
2
Solved
There are several ways to handle synchronization in Vulkan. This is how I understand it:
Fences are GPU to CPU syncs.
Semaphores are GPU to GPU syncs, they are used to sync queue
submissions (on ...
Inexplicit asked 27/5, 2016 at 11:41
3
I have implemented a SyncAdapter, AccountManager and private ContentProvider along the lines of the SimpleSyncAdapter sample project in the SDK. It is all working well.
Now I want to show a messag...
Kythera asked 13/2, 2012 at 21:40
1
Solved
I have read the documentation for the @async and @sync macros but still cannot figure out how and when to use them, nor can I find many resources or examples for them elsewhere on the internet.
M...
Karonkaross asked 17/5, 2016 at 22:7
2
Solved
I am using retrofit API in one of my app.
Below is the code :-
for(int i=0; i< mFileArrayList.size();i++){
WebServiceManager.getInstance().getFrogService().postNotes("HI", "Hello", "Done", n...
Heterogynous asked 17/5, 2016 at 12:14
5
Solved
This is an interview question.
Is it possible to use mutex in multiprocessing case on Linux/UNIX ?
My idea:
No, different processes have separate memory space.
mutex is only used for multithr...
Cope asked 22/2, 2012 at 5:50
2
The example implementation Wikipedia provides for a spinlock with the x86 XCHG command is:
; Intel syntax
locked: ; The lock variable. 1 = locked, 0 = unlocked.
dd 0
spin_lock:
mov eax, 1 ; Se...
Fuel asked 19/4, 2016 at 23:23
1
I'm developing on Android and I can't figure out why some of my threads are going into a "monitor" status. I've read it could be because of a "synchronized" issue but I'm not sure how an object wou...
Wheelbarrow asked 24/8, 2012 at 19:30
2
While reading Oracle tutorial on collections implementations, i found the following sentence :
If you need synchronization, a Vector will be slightly faster than an ArrayList synchronized with C...
Chinkiang asked 1/1, 2016 at 14:29
1
According to Controlling startup order in Compose, one can control the order in which Docker Compose starts containers by using a "wait-for-it" script. Script wait-for-it.sh expects both a host:por...
Rashid asked 12/5, 2016 at 18:25
6
Say we have a group of 10 people, within 20m of one another. Each person has a mobile phone (iPhone / android / Windows phone).
And one person taps the screen to send a message.
And this is insta...
Leprosy asked 2/12, 2013 at 15:7
1
Solved
I noticed my scheduled JobScheduler is executing the job way too often. I have it set to execute daily and it requires to be idle, to be on wlan and to be charging, but when those conditions are me...
Orebro asked 29/4, 2016 at 18:25
4
Solved
We do some aggregation on huge datasets in Amazon RedShift, and we have some relatively small amount of data in MySQL. For some of the joins in RedShift we need the data in MySQL. What is the best ...
Gheber asked 16/10, 2013 at 8:21
2
We're building an API and mobile app on top of a database that has a few hundred thousand records in the main table of interest.
Our mobile developer is pushing hard about pre-loading the app with...
Homan asked 17/7, 2014 at 17:51
3
I'm trying to synchronize my Person class Methods so that my static counter variable gets decremented by one thread at the a time.
public class Person extends Thread {
private static int count ...
Aarhus asked 20/4, 2016 at 19:10
1
Solved
For resource transitions, you need to know the 'before' and 'after' VkImageLayout of the resource (eg. in the VkImageMemoryBarrier passed to vkCmdPipelineBarrier). Vulkan does not guarantee any ord...
Quintile asked 13/4, 2016 at 14:13
4
Solved
In my app, I'm using a contact sync adapter, but it has a lot of information that it shares with the main app. There are settings that the adapter needs to work proplery (like login information and...
Lagas asked 18/12, 2013 at 17:5
2
Solved
I've read about the problem on https://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/Condition.html.
This is what the documentation says about the two conditions:
We would like t...
Trophic asked 11/4, 2016 at 5:31
4
Solved
What is the difference between Clojure STM (dosync) approach and Java synchronize Block?
I'm reading the code below from "The sleeping barber" problem.
(http://www.bestinclass.dk/index.clj/2009/0...
Liggett asked 27/8, 2010 at 11:2
1
Solved
This is a followup to my question here: Android thread runnable performance
I'm having some difficulty wrapping my head around synchronized methods for my app
I'm polling the sensors and storing ...
Ferdinana asked 4/4, 2016 at 10:34
4
Solved
I'm looking at some code in a third party library that contains a synchronized method, and within this method there is a synchronized block that locks on an instance variable. It's similar to this:...
Bandur asked 1/9, 2015 at 18:57
2
Solved
I have some issues with the following code:
package main
import (
"fmt"
"sync"
)
// This program should go to 11, but sometimes it only prints 1 to 10.
func main() {
ch := make(chan int)
var wg...
Jhvh asked 4/4, 2016 at 15:46
5
Solved
When multiple threads request a lock on the same object, does the CLR guarantee that the locks will be acquired in the order they were requested?
I wrote up a test to see if this was true, and it s...
Lucerne asked 19/11, 2010 at 19:57
© 2022 - 2024 — McMap. All rights reserved.