12,897 questions
-2 votes
0 answers
67 views
How to properly implement reference counting in Linux kernel modules to prevent use-after-free vulnerabilities? [closed]
I'm developing a custom Linux kernel module for managing device resources, and I need to implement proper reference counting to prevent use-after-free (UAF) vulnerabilities. My module maintains ...
Best practices
1 vote
2 replies
40 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
34 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
26 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
61 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
138 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
55 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
113 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
42 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
145 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
45 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
19 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
154 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
64 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
57 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 ...