Click here to Skip to main content
15,881,898 members
Everything / Concurrency

Concurrency

concurrency

Great Reads

by Noah L
Beware the data race sneak attack.
by Maximilian1986
The "Game of Life" is a mathematical representation of the human evolution, in which a few patterns develop through the time.
by Paolo Parise
Graph intersection using map reduce and Akka
by ipavlu
Optionally awaitable simple to use Concurrent Priority Queue.

Latest Articles

by 1f604
Source code and explanation of my io_uring based implementation of b3sum
by Marco-Hans Van Der Willik
This article explores the performance, scalability and limitations of the various .NET Threading Implementations.
by AlexeyAB
Atomic operations and C++11 memory barriers and assembler instructions generated on x86_64 CPUs
by Jason Sultana
In this post, you will see why Threadsafe is not enough

All Articles

Sort by Score

Concurrency 

27 Oct 2015 by Maximilian1986
The "Game of Life" is a mathematical representation of the human evolution, in which a few patterns develop through the time.
14 Dec 2016 by Paolo Parise
Graph intersection using map reduce and Akka
29 Dec 2017 by ipavlu
Optionally awaitable simple to use Concurrent Priority Queue.
11 Aug 2015 by Sergey Alexandrovich Kryukov
Ridwan Sameer asked:But the drawing of the car object will be separate from passing the object yes? (I.E even though I pass the object from one thread to another, does not mean the object would be drawn at the appropriate panel)This is yet another chapter you need to learn. It depends on what...
17 Jul 2019 by ireland94
This program demonstrates the methodology needed for by directional messaging between a Java FX foreground and 1 or more background threads.
22 Feb 2018 by Dave Kreskowiak
They hide information like that in the documentation[^]: Quote: The enumeration represents a moment-in-time snapshot of the contents of the queue. It does not reflect any updates to the collection after GetEnumerator was called. The enumerator is safe to use concurrently with reads from and...
4 Aug 2023 by Sonhospa
Hi all, I'm afraid it's my (messed up) syntax that results in a repeated task running syncroniously instead of using multiple tasks (i.e. the 'Debug.WriteLine' message reports Thread 5 all the time). Would someone who has the relevant...
5 Aug 2023 by Graeme_Grant
There are no asynchronous operations. You need to use asynchronous File methods. Alternatively, wrap your call to TestForLTO_async in a Task.Run in the Select Linq method. UPDATE I have knocked up an example of how to do it with the...
9 Aug 2015 by Sergey Alexandrovich Kryukov
You say that "section" is some rectangle. It's very likely that some thread can work at sections, one section per thread, but you cannot say that "section should be a thread". At the same time, no matter what you do, the UI properties/methods can only be called from the UI thread.You cannot...
26 Jul 2023 by 1f604
Source code and explanation of my io_uring based implementation of b3sum
28 Apr 2014 by Sergey Zubarev
AsynchronousSocketChannel concurrent writes
24 Jul 2014 by Wendelius
If concurrency handling is done properly, I believe you won't be facing any performance problems.The key thing in my opinion is to use optimistic concurrency handling instead of locking for longer periods of time. The technique for this is to use rowwversions.For starters, have a look at...
26 Jul 2014 by Mukherji Nivedita
Thanks for the response Mika... I would definitely dig more into your suggestion !!
5 Dec 2014 by Grant Weatherston
Stupid question alert:why is rowVersion in MVC to handle concurrency a byte array?i thought it would just be an int (to hold a number that gets incremented / checked each time).
15 Dec 2014 by Simon Gulliver
The underlying SQL variable is 8-bytes
16 Dec 2014 by Tarun J
I have a folder in which I have, lets say 5 files each ~300 MB.I am trying to read all the files concurrently in a ConcurrentDictionary so that duplicate values are not there. If a new item is found then I also push it to a ConcurrentQueue. I also have a writer which DeQueues from the...
26 Feb 2015 by aayzz
I work on a real WCF/MSMQ project to handle concurrency/queued!! calls from different clients, and I choose InstanceContextMode.PerSession and ConcurrencyMode.Multiple for WCF Intancing and Concurrency modes, and MessageQueueTransaction.This the requirement of the project: - Clients send...
1 Apr 2015 by Bharat Mourya
I am recently learning Concurrent DataStructures and implemented data structures like queues but I am wondering if there are any real applications to these. Can suggest some working applications that we can design based on these data structures?
20 Oct 2016 by kjburns1980
I have written a publisher-subscriber system for a multi-threaded project I am working on. It is my understanding that when using SynchronizedList structural operations are supposed to be thread-safe, but iteration requires that the list be wrapped in a synchronized block.For these reasons,...
8 Jan 2018 by Rajesh Pandya
You can dislable lock escalation. For disalbe lock escalation you can specify at the table level using ALTER TABLE tablename SET(lock_escalation = DISABLE). For more detail look at https://msdn.microsoft.com/en-us/library/ms190273.aspx If you disable it can result in higher memory consumption....
22 Feb 2018 by Patrick Skelton
I have an in-memory 'circular' logger that uses a ConcurrentQueue internally. When an error occurs, I access the contents of the in-memory log to give additional context to the error message. It all seems to work fine. Then I looked again at the code and began to wonder if what I had written...
11 Sep 2018 by nmeri17
I'm planning to work on a web project that requires concurrency. I have past experience with websockets and would favour using it again, although I've learnt about xamp and jabber and might be willing to explore if they're more viable. I recently learnt about CRDT (from figma) and while, from my...
7 Mar 2019 by m.bleimuth
I am writing a quite simple Multiuser WPF application where each user can modify / delete his own data. Means each user can see all the data of other users but is not allowed to modify or delete it. The whole application performs well until 2 or more clients hit the savechanges method at the...
16 Jul 2020 by dj4400
Hi i am new to the concurrency programming I have a 32bit app which uses a parallel_for I need to add a clr dll to the app which requires me to mark the "common language runtime support" property - which results in a debug error that says...
3 Jun 2021 by lil_mint
I was trying to create a counter gui and from what I've tried it was working but I need to use between the 3 concepts the Threading, Concurrency and Parallelism. Just want to ask what would be the best or simplest? (will insert/edit the code...
16 Sep 2021 by Hadrian Chong
I was designing the airport simulation. After the planes had accessed the runway and landed at the gate, I want it to release the runway where other planes are able to access the runway one at a time. What I have tried: package...
11 Sep 2022 by Member 14969632
I have this multithreading (concurrent queue) C++ code where a single consumer executes tasks submitted to the concurrent queue by multiple producers. Assuming that the consumer can handle events faster than that the producers can produce them,...
10 Sep 2022 by Rick York
I would start by debugging the locking code. One way you can do this using output messages and this usually called "printf debugging" since the implementations usually used printf. What I would do is add an output statement similar to what you...
11 Sep 2022 by Greg Utas
Writing correct multithreaded code is hard, and debugging it is even harder, which is why I advocate a far less error-prone approach[^] in which each thread runs unpreemptably (locked) and yields in its thread loop after completing one or more...
16 Dec 2021 by AlexeyAB
Atomic operations and C++11 memory barriers and assembler instructions generated on x86_64 CPUs
11 Jul 2023 by Marco-Hans Van Der Willik
This article explores the performance, scalability and limitations of the various .NET Threading Implementations.
3 Mar 2019 by MehreenTahir
This article is a continuation of Programming Concurrency in C++ Part 1. We will discuss synchronization, future and promises along with async and with that, will sum up the introduction of concurrency in C++.
27 May 2013 by Marius Bancila
This article is a walk-through the C++11 support for threads and synchronization mechanisms (mutexes and condition variables).
30 Mar 2021 by AlexeyAB
Smart pointer that makes any object thread-safe for any operations, with the performance equal to that of optimized lock-free containers
20 Aug 2014 by Evgeny Zavalkovsky
Multi-reader lock that provides real readers' lock-free and wait-free concurency on multi core systems.
16 Dec 2018 by MehreenTahir
This article will help you get started with concurrency and will also introduce you to the features C++ has to support concurrent programming.
12 Feb 2018 by nchamberlain
Avian Computing provides new tools for thinking and designing parallel programs
2 Mar 2017 by Awesh Vishwakarma
The easiest way to use Entity Framework with SQLite databases in C# Winform and Console Applications
27 May 2015 by Arup Banerjee
The project is a simple Temperature Converter WPF Application which will allow user to convert from Celsius to Fahrenheit and vice versa. The objective however is to demonstrate techniques that are important when building large-scale front-end enterprise software.
24 Jul 2016 by Ameet Parse
Solving Producer Consumer Problem - Thread Safe Data Access for Shared Data
6 Apr 2021 by Jason Sultana
In this post, you will see why Threadsafe is not enough
30 Sep 2018 by Steven Coco
This illustrates a simple pattern that provides a lock that can always be invoked; and may be a no-op for a non-synchronized implementation.
20 Nov 2018 by Shivprasad koirala
This article will explain the difference between concurrency and parallelism. Concurrency vs parallelism has been a debated topic for a long time.
23 Jan 2015 by vudangngoc
Is it easy to create an IoC container?
19 Aug 2015 by Chris875
Please refer below for the several options to call a function with async/await.I put my questions below each option.Lets assume I have a 3rd party Dll and want to call a function of it asynchronously. Despite there is a function description one cannot know what actually happens...
24 Jul 2014 by Mukherji Nivedita
Hi,I am working in a project related to Insurance and Finance domain. It is a web based application based on EDMX. The platforms which we are using ASP.NET 4.5 and Sql Server 2008. We have many screens and there are lots of places from where duplicate records can get saved. We have put...
8 Aug 2015 by Ridwan Sameer
So we've been given a (very) brief introduction to concurrency. It wasn't a very fleshed out session, but either way I've decided to take on a small project.The project is to design a concurrent car park simulation.There are four entrances, and a single car can occupy one section at a...
8 Jan 2018 by Tamanna Sharma
Hi, My question is regarding concurrency and locking mechanism. In my project, Informatica and SQL procedures have to process on a single SQL table. Process 1: Informatica dumps a set of records into SQL table X. Then SQL procedure need to take that set from X to process and then dump the...
7 Mar 2019 by Gerry Schmitz
Who told you to use "parallel" programming? I can see now why EF gets a bad rap. Hammering the system with "Save Changes", etc. You need to get back to basics. c# - Parallel doesnt work with Entity Framework - Stack Overflow[^]