12,896 questions
5
votes
1
answer
166
views
How to handle strict FIFO waiters with futex when a waiter crashes?
I’m building a shared-memory, event-driven allocator on Linux with:
Multiple producers, single consumer (MPSC)
Variable-size allocations from a shared memory pool
When memory is unavailable, ...
Best practices
1
vote
2
replies
41
views
Android data syncronization strategies
I currently have a windows app I wrote that interacts with data from a web API. I'm trying to make an android version to carry around with me. Generally only one person accesses the data from their ...
Advice
0
votes
0
replies
42
views
Fiware Scorpio Notification Echo in entity Update
I'm developing a service that runs alongside my Scorpio NGSI-LD broker and other databases. This service exposes an API that allows users to update entities, and these updates are propagated to ...
Advice
1
vote
1
replies
32
views
Is "Inconsistent synchronization on field" wrong in the case
Give a private field with public read access by the property and a method where this field is written. I use the lock to make a consistent write in a method, but I have no lock in the property. Code ...
0
votes
1
answer
65
views
Check my local Strapi server's Content Manager against Strapi Cloud server's Content Manager?
I'm using Strapi Cloud version 5 headless CMS for my website. But sometimes it's easier to work with the local Strapi server localhost:1337 - I don't have to wait for the deployment. The problem is, ...
4
votes
1
answer
139
views
How does flushing work between C and C++ streams when they are synchronized?
By default, C++ streams (cin, cout) are synchronized with C streams (stdin, stdout). This allows mixing C and C++ style I/O. I am trying to understand what this means in practice regarding flushing. ...
1
vote
1
answer
61
views
Audio context output latency, my device has undefined value, so I cannot manage to sync the audio in different devices
I am trying to sync multiple audio files to be played in different devices and browsers at the same time. I have already manage to sync the clocks of all the devices with a max error of 10ms, avg ...
0
votes
1
answer
114
views
Is this piece of code correctly synchronized? Java synchronization and memory visibility question
Here is a Java class that writes messages in a parallel thread to a stream. When the stop() method is called, the mCloseWriter flag is set and the thread that writes the messages to the stream is ...
0
votes
0
answers
43
views
What protocol does the LLC directory uses to synchronize parallel RFO signals?
The MESI or MOESI protocols need the LLC directory in order to work... and the directory needs to synchronize parallel RFO + snoop-invalidation calls in order for it to work
(in TSO architectures that ...
1
vote
2
answers
154
views
How do I test a Singleton for thread-safety in a unit test?
Everyone knows Singletons. Here is one:
public class MySingleton
{
private MySingleton() { }
public static MySingleton GetInstance()
{
return instance ??= new MySingleton();
}
...
1
vote
0
answers
47
views
Sorting sync and non-sync at runtime
I'm working on an ECS system that automatically multithreads systems (similar to bevvy). However sometimes third party libraries don't play nice with multithreading. Bevvy's answer is resources, but ...
0
votes
0
answers
21
views
Kendo React PivotGrid – Row headers and values not staying in sync while scrolling after customization
I’m using the KendoReact library to render a Pivot Table (PivotGrid) in my React project.I’ve customized the Pivot Table’s styles and layout according to my requirements.
Table is presnt On Two pages
...
0
votes
4
answers
159
views
In a synchronized block, can I synchronize on a Collection of monitor objects?
I have a class that I want to make thread-safe. In it are these 2 functions :
public void add(String param1, String param2) {
// do something
}
public void clear() {
// do something else
}
I ...
0
votes
0
answers
66
views
How to retrieve an photo (serviceRelativeUrl) in vba of a linked SharePoint list
The membership list of our sporting club is maintained by a Sharepoint list. I established a link between the sharepoint list and an excel file, which appears as a seperate tab/table in my excel. When ...
0
votes
1
answer
61
views
SYCL avoiding unnecessary memory transfers and Intel oneAPI guide examples
I'd like to clarify which memory transfers are done in two examples of SYCL code in Intel's oneAPI guide. The guide makes one point that contradicts my impression about when memory transactions are ...
0
votes
0
answers
20
views
React - syncedstore + JsonForms
I'm using json forms to generate forms from a json description. I'm trying to have cooperative filling (multiple users can work on one form at a time, and see changes in real time).
const store = ...
4
votes
3
answers
237
views
Why do we need condition variables when we can use two semaphores?
An example of producer and consumer threads is usually given.
But this can be done with two semaphores.
Why do we need condition variables then?
Example with pthread library:
// write thread
while(1)
{...
0
votes
1
answer
64
views
GitHub - VSCode - Synchronize: How to?
I generally (seem to) understand that GitHub is a tool to save code on the internet.So let's start simple:
I have a small project, basically consisting of a .py file and readme.md as suggested from ...
0
votes
0
answers
81
views
How to refresh dashboard running on Thingsboard Edge
I am playing around with Thingsboard Edge and dashboards. I can update dashboards on my main thingsboard instance, and they are synced to the edge instance just fine. But when I have the dashboard ...
0
votes
1
answer
143
views
Sync Keycloak MySql database with LDAP and external MySql database
We have setup Keycloak for our product solution in order to use it as the identity provider.
We are going to import users from LDAP into the Keycloak database (Keycloak MySql production database).
We ...
1
vote
2
answers
161
views
Is there a way to “split” an OpenMP synchronization barrier?
I have some code that previously looked like:
std::vector<MyObject> data;
do { // May run 100 times or more
prepare();
remaining = compute1(my_data);
remaining -= compute2(my_data);
...
0
votes
0
answers
46
views
Having issues with implementing Google Drive sign-in with AndroidX‑Credentials/Identity - Simple android notes app
Im at my wits end with implementing the syncing functionality to my simple notes app for android that I created using kotlin and jetpack compose.
So Im a total beginner on coding and have ...
0
votes
0
answers
27
views
Integration between Bitbucket and Azure DevOps Server
I have a project repository in bitbucket. I want this repo to be triggered synchronously in azure devops pipeline, that is, when I make a change and commit it to bitbucket, azure devops will detect ...
0
votes
0
answers
94
views
OpenGL ES sync, how to send the completed signal by the CPU?
Through the extension EGL_KHR_fence_sync, we can achieve multi-threaded GPU synchronization by using interfaces such as eglCreateSyncKHR(), eglDestroySyncKHR(), and eglClientWaitSyncKHR();
When the ...
0
votes
0
answers
65
views
Syncing files with proxmox LXC, VM ...?
I actually have a very simple task, but I still don't know the easiest way to solve it. It would be best if the solution was based on my proxmox homeserver, because I already have it.
I have a NAS in ...
0
votes
0
answers
69
views
Duplicated Users on O365 after the synchronization from AD on Prem
I have an issue for some users that already created previously on O365 Cloud and they have mailbox, and then they requested to create it on AD on premise, so it should be same UPN and same proxy ...
0
votes
1
answer
77
views
Google Drive API Determine if Google Drive object is owned by user or shared
I have a script that synchronizes changes with Google Drive via the service->changes->listChanges mechanism. This is the general approach (php code here)
$idChangeHistory = [] ;
do {
$...
2
votes
2
answers
47
views
How can I sync missed websocket data from mobile app inactivity
I have a mobile app in Flutter. I have a web_socket connection to my backend server. This works perfectly with updating data in real-time. Though when the app goes in the background, the websocket is ...
0
votes
1
answer
74
views
Sync folder/file detection in Android
In my application, I want to allow the user to select a file, which is represented as a URI. This URI can natively resolve to a file path. I want to determine whether the file is stored locally or if ...
1
vote
1
answer
64
views
Syncing audio with score scrolling
I'm buiding a webpage that will be used by drummers to practise patterns.
In order to do so, I must have:
An adjustable metronome (functional)
A score including automatic scrolling synced to the ...
0
votes
0
answers
33
views
linux regular file atomicity: multi-process, "flip-flopping" old/new values
Consider Process A doing the following using repeated calls to write(2) to write data, in the period before it closes or does an fsync(2) or fdatasync(2) to flush to disk.
Meanwhile Process B is doing ...
1
vote
1
answer
96
views
why I am not getting deadlock
I was revising the concepts of the channels in go where I learned in the unbuffered channel if the receivers are less but senders are more then It must give deadlock and vice versa
In my case first ...
0
votes
0
answers
76
views
How to Adjust Google TTS SSML to Match Original SRT Timing?
I have an .srt file where each speech segment is supposed to last a specific duration (e.g., 4 seconds). However, when I generate the speech using Google Text-to-Speech (TTS) with SSML, the resulting ...
0
votes
1
answer
71
views
Trying to remove synchronization from thread-heavy workload
I came across some code in our code base that seems not wrong, but terribly inefficient due the the nature of our platform (a lot of threads could be accessing these two methods simultaneously).
...
0
votes
0
answers
19
views
Node synchronization having delays in GridDB
New data appears instantly when queried from primary nodes but takes a few minutes to show up on secondary nodes. Restarting a node forces synchronization, but that’s not practical in production. ...
0
votes
0
answers
79
views
Couldn't sync the audio and text in openai-realtime-beta
I am using OpenAI’s real-time API (gpt-4o-realtime-preview-2024-12-17) in a React-based application for live transcription and response generation. However, I am facing an issue where the transcribed ...
1
vote
2
answers
114
views
Java sync threads accessing an AtomicInteger for incrementing count [duplicate]
There is a Threads class, inside which the ExecutorService is launched and 5 threads inside it, and there is also a Counter class with an atomic change of a variable. Inside each thread there is a ...
0
votes
0
answers
24
views
Distant and local database synchronization: how to manage temporary IDs?
I want to have a copy of my database locally. But on this local copy, I can create new items.
I want the distant database to create item IDs, to avoid duplicate IDs.
So when I create new items, I use ...
3
votes
0
answers
100
views
CUDA Dynamic Parallelism Synchronization (CUDA > 11.6)
I need to use a function like cudaDeviceSynchronize to wait for a kernel to finish execution. However after version 11.6, it is no longer possible to use any form of synchronization within device ...
0
votes
1
answer
206
views
How to run Prysm client with checkpoint sync using --checkpoint-block value (block number) and --checpoint-state value (state root)
Request: to run Prysm client with checkpoint sync using --checkpoint-block value (block number) and --checkpoint-state value (state root), does it require to have this block already synced in the ...
1
vote
1
answer
60
views
F# lock function with System.Threading.Lock
.NET 9 introduced a new Lock object (System.Threading.Lock). The C# 13 compiler has also been made able to recognize when the lock keyword is used with such a class instance, producing the correct ...
0
votes
0
answers
13
views
WordPress Plugin for autosync pdf files from server when updated
We offer products for the building industry. Architects etc often look for pdfs with technical informations. We will list them on the product pages and some other landingpages like faq.
I would like ...
-1
votes
1
answer
104
views
Old android studio, Gradle not syncing issue
I have an error that i don't know what is wrong. I am using an old android studio 2.3.3 and my application is for old android so need to keep it that way.
I have my project on old computer which ...
0
votes
0
answers
120
views
Vulkan Image Layout Transition Synchronization
I have 2 queues for which I submit commands. The first one is the graphics queue and the other one is the compute queue. They are also getting executed in this order. (graphics -> compute -> ...
1
vote
0
answers
46
views
In my Vulkan program, how to implement synchronisation to avoid displaying image in wrong order?
I'm writing a Vulkan program.
I have a problem with image being sometimes displayed in wrong order.
Here is the part I suppose where things to go wrong.
For information, I have 2 frames in flight (...
0
votes
1
answer
76
views
Sync Sequelize model with database
I am trying to sync a Sequelize model with my database, but I can't get over this error.
Using Sequelize as my ORM, database is Oracle express:21.3.0-xe
This is the error:
Executing (default): ...
0
votes
1
answer
50
views
Fence waiting on work from a different vkQueueSubmit call after being reset [closed]
I have code that looks like this:
vkQueueSubmit(queue, 1, &infoB, fenceB); // ~130 ms to complete
while(1) {
vkWaitForFences(device, 1, &fenceA, true, UINT64_MAX);
vkResetFences(...
0
votes
0
answers
25
views
Is it possible to modify a SQL query generated by the Kony 7.3 sync server?
I'm still using the Kony 7.3 Mobile platform to build mobile apps that sync data with a backend SQL server.
And, I know that I can alter/modify the SQL query generated by the Kony 7.3 sync server, ...
0
votes
1
answer
95
views
How do I synchronize two databases?
I need to regularly synchronize two SQLite databases. One on a Raspberry Pi 4 running Node.js/NestJS (always on but without internet connection), another provided to the Raspberry Pi 4 via a USB drive ...
0
votes
2
answers
460
views
Multiple virtual threads on a single platform thread
When using virtual threads in Java 21 there is a way to limit the number of underlying platform threads by specifying jdk.virtualThreadScheduler.parallelism and jdk.virtualThreadScheduler.maxPoolSize ...