synchronize Questions

4

Solved

I recently had to correct security issues in a web-application (that I didn't create). The security problem was, it was using non-http-only cookies. So I had to set the session-cookie http-only, ...
Centrosome asked 1/2, 2017 at 9:51

2

I would like to synchronize two folders with each other. It should go two ways, always keeping the folders up to date (I use a regular cronjob). However, first I do not get the two way file transfe...
Middleoftheroad asked 9/3, 2011 at 12:43

3

I'm using a cookie in my app which works fine in all browsers, but in android device the cookie is not setting as fast as I wanted, it takes some time until cookie is saved, same is happening when ...
Tingle asked 28/5, 2015 at 9:24

2

Solved

I'm working on Google Chrome extension, which has to block/redirect some outgoing requests. For this purpose, I use chrome.webRequest.onBeforeRequest listener. To decide, whether to block request o...
Ingathering asked 19/3, 2013 at 11:34

8

Solved

I'm trying to understand what makes the lock in concurrency so important if one can use synchronized (this). In the dummy code below, I can do either: synchronized the entire method or synchroniz...

6

Solved

No matter what I do, Eclipse (EGit) doesn't display the changes. I've searched a lot for this issue, but cannot solve it. A friend of mine has the same issue. In the past everything worked fine, bu...
Reconstruct asked 28/1, 2013 at 20:22

2

I have next situation. I have two mongodb instances on different servers. For example Mongodb instance on server "one" (host1:27017) with database: "test1" Mongodb instance on server "two" (host2...
Commendation asked 21/5, 2013 at 13:5

3

Solved

I am working on a javascript project that needs to get some data and process it, but I am having trouble with the asynchronous nature of JavaScript. What I want to be able to do is something like t...
Bathsheba asked 8/6, 2016 at 16:37

3

Solved

I'm using Android Studio to code my apps. Now I want to work on 2 PC's and thought about using a Cloud-Service. I decided to use GitHub, but I can't find a way to synchronize my GitHub accoun...
Retard asked 17/11, 2014 at 19:1

3

Solved

I'm writing a dll library in Delphi with multiple threads created by it. Let me describe the problem step by step. I'm sorry for a lengthy description in advance :-(. Let's forget about the librar...
Frontpage asked 22/9, 2010 at 17:56

2

Solved

I tried following the advice from this post Synchronise ScrollView scroll positions - android but running into a problem. Background - I want a table layout with both horizontal and vertical scrol...
Crawley asked 24/10, 2011 at 1:25

4

Solved

As I know, every class has a Class object. There is one case when I use synchronize, for example: public class A { public static void main(String... args){ synchronize(A.class){ //do something....
Gardener asked 28/9, 2015 at 9:41

2

Solved

Does ruby have the Java equivalent of synchronize keyword? I am using 1.9.1 and I don't quite see an elegant way to do this.
Niki asked 8/7, 2010 at 22:26

1

I'm using ansible in the following way: ansible-playbook -f 1 my-play-book.yaml --ask-pass --ask-sudo-pass After this I'm asked to enter the ssh & sudo passwords (same password for both). In...
Scotia asked 1/7, 2014 at 7:13

1

Solved

I am making an app that fetches JSON content of a blog. The titles of the blog articles are shown in tableView. The titles fetched were HTML encoded. So I decoded them using this code func confi...
Abad asked 11/2, 2015 at 15:23

3

Solved

I have a problem where I need x threads to wait until they have all reached a synchronization point. My solution uses the synchronise method below which is called by each threaded function when the...
Trinitrocresol asked 20/5, 2009 at 11:12

2

Solved

From what I understand, calling TThread's Synchronize will execute the synchronized code as if it was ran in the main thread. Let's say that in my main thread, I have one button: procedure TForm3....
Indiaindiaman asked 23/2, 2014 at 23:37

3

Solved

Want to synchronize the cache data between two servers. Both database is sharing the same database, but for better execution data i have cached the data into Hash Map at startup. Thus want to...
Shrovetide asked 16/5, 2013 at 11:6

5

private volatile Object obj = new MyObject(); void foo() { synchronized(obj) { obj.doWork(); } } void bar() { synchronized(obj) { obj.doWork(); obj = new MyObject(); // <<<&...
Straticulate asked 26/4, 2013 at 16:35

0

I am facing an interesting problem and I wanted to see if anyone else tackled this situation before I spend days theorizing. I have 2 systems. The first system maintains a sorted list of data. Let...
Entomologize asked 10/4, 2013 at 17:32

3

I known a Hashtable is synchronized, but why its get() method is synchronized? Is it only a read method?
Concoction asked 14/1, 2013 at 1:40

1

Solved

I would like to confirm here if I understood correctly how TCriticalSection and Synchronize operate. As far as I know right now Synchronize uses SendMessage (update: or at least used it in older V...

3

Solved

I have a class of common code that is thread safe. One of the methods in that class is abstract and needs to be overridden for different implementations. I need to ensure or at least flag to othe...
Barbarism asked 2/10, 2012 at 5:9

1

This question is related to using cuda streams to run many kernels In CUDA there are many synchronization commands cudaStreamSynchronize, CudaDeviceSynchronize, cudaThreadSynchronize, and also cud...
Fulminant asked 14/8, 2012 at 13:48

6

Solved

Consider following code, I want to make it a thread safe class, so that it will never get odd number: class Test { private int value = 0; private final Object lock; public void add() { synchr...
Jacobah asked 13/7, 2012 at 20:36

© 2022 - 2024 — McMap. All rights reserved.