Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / programming / threads

Threads

threads

Great Reads

by Evgeny Pereguda
Clone of PCSX/PCSX2/PPSSPP emulator for Windows 10 on WPF/C# with "touch" control
by Hari Mahadevan
Describes a C++ class that encapsulates the WaitForMultipleObjects API usage pattern making it easy to integrate it with C++ objects.
by Hari Mahadevan
Describes a C++ class that encapsulates the WaitForMultipleObjects API usage pattern making it easy to integrate it with C++ objects.
by Sebastian Solnica
A case of a deadlock in a .NET application

Latest Articles

by Evgeny Pereguda
Clone of PCSX/PCSX2/PPSSPP emulator for Windows 10 on WPF/C# with "touch" control
by Hari Mahadevan
Describes a C++ class that encapsulates the WaitForMultipleObjects API usage pattern making it easy to integrate it with C++ objects.
by Hari Mahadevan
Describes a C++ class that encapsulates the WaitForMultipleObjects API usage pattern making it easy to integrate it with C++ objects.
by Sebastian Solnica
A case of a deadlock in a .NET application

All Articles

Sort by Score

threads 

by Evgeny Pereguda
Clone of PCSX/PCSX2/PPSSPP emulator for Windows 10 on WPF/C# with "touch" control
by Hari Mahadevan
Describes a C++ class that encapsulates the WaitForMultipleObjects API usage pattern making it easy to integrate it with C++ objects.
by Hari Mahadevan
Describes a C++ class that encapsulates the WaitForMultipleObjects API usage pattern making it easy to integrate it with C++ objects.
by Marc Clifton
A discussion of various approaches to threading, covering locks, mutexes, semaphores, concurrent collections, work queues, threads, PLINQ, TPL, exception handling, and cancellation tokens
by Sacha Barber
A brief look at using the .NET Akka framework (Akka.NET)
by Dirk Bahle
I have posted a recent article on the ProgressViewModel to show a software design that can be used for background processing in C# 4.0. This article extends that design with the ability to ouput more than one progress.
by Michael Mann (mann.DEV)
Plugin migration with new features of .NET 3.5.
by Eduardo Antonio Cecilio Fernandes
How to build a simple Scheduler in C# for Desktop and Web Applications
by Andre Trollip
A simple set of classes to make creating Peer to Peer messaging easy using UDP. Features built-in message concatenation and delivery receipts for reliable transmission.
by federico.strati
This is a standard Windows / C++ implementation of a multi-threaded queue.
by Tim Bomgardner
Make .NET threadpool threads jump through hoops with this handy support class
by honey the codewitch
How to implement a complicated multithreaded message passing scenario
by hofingerandi
A tiny application to launch a process suspended to allow, e.g., attaching a remote debugger.
by gndzero
A threaded application to identify if system VB6 OCX files are exploitable and generate a batch file to register updated OCX controls.
by Andriks
A MessageBox replacement with some much needed extras
by T. Herselman
C++11 header-only class, executes functions on a separate thread, including return values. Featuring a unique custom built, low level, lock-free double buffered queue; with a high speed data format, executes a queue of functions in only 6 CPU instructions; lea,call,mov,add,cmp,jb
by Simeon Sheye
How to manage state and simulate behavior against the system under test.
by Pavel Durov
This article is explaining how to implement a basic game fundamentals on Android platform.
by Patrick Kalkman
This article describes how I developed Androng, a Pong clone for Android.
by Saurabh_Saxena
async and await- Simplified -Internals
by Yesy
Improve WPF async data binding
by Nejimon CR
Implement WCF web service access from WPF with busy indicator and premature cancellation feature without using delegates, background worker, or separate event procedure
by Jason Curl
Describes the usage of Asynchronous I/O with I/O Completion ports with .NET
by Florian Rappl
An introduction to async / await, popular mistakes and solutions for asynchronous programming, as well as usages and benefits from using asynchronous programming. We will also discuss interesting patterns based on concurrency.
by ASP.NET Community
Improve the scalability of a website and efficient design for time consuming processes.
by Selim Sertaç BALCI
How to use delegates for async operations, pros and cons of it.
by Sudheesh.P.S
Automatic thread synchronization classes which throw exceptions instead of error codes
by Dirk Bahle
Save/Load AvolonDock layouts without DockingManager references.
by Keith L Robertson
Write synchronous-looking asynchronous methods without async/await in Visual Studio 2010.
by Vlad Neculai Vizitiu
How to add functionality to an ASP.NET Core application outside of a request
by Srivatsa Haridas
Simple steps to a Multithreaded application
by David Jeske
A C# sorted map which can be efficiently subset scanned in both directions
by SarmadAsghar
This will provide opportunity to calculate aggregates, joins on the data retrieved from API’s which was never done.
by Michael Bookatz
Comparison between different methods to iterate over a list of items and see which method is the most effective
by RajeshRaushan
A beginner's approach to create a custom thread pool to understand the concept of multithreading and synchronization.
by Soroush Falahati
Introducing a class for generating 3D images (Stereoscopic and Anaglyph) from DepthMaps.
by Rick Bassham
An introduction into creating a working FTP server in C# using the RFC specification.
by honey the codewitch
Leveraging some less well known areas of the .NET Task framework to schedule tasks to execute on your own conditions.
by gossd
An introduction and proof of concept code for the idea of declarative multi threading in C#.
by Maxim Kartavenkov
Articles describes how to create virtual video capture source directshow filter in pure C#
by Serge Berlin
.NET Library for in-memory GZip and LZMA compression combined with strong BlakeB based stream cipher engine
by Christopher Diggins
An informal survey of implementation techniques of the map higher-order function for arrays in C#.
by Maxim Kartavenkov
Articles describes how to make pure C# rendering video on EVR with custom presenter over Direct3D in .NET
by Sacha Barber
A look into messaging solutions using NServiceBus.
by Simeon Sheye
How fast can a loop reading from memory be made to run and how does loop constructs, data types, interfaces, unrolling and hoisting affect performance?
by C Yang
Program to inventory directories and tally files.
by Huisheng Chen
Distributed File Management
by Toby Steed
In the last article, we discussed the definition of a framework and expanded on it. And we tried to understand that the idea of writing your own framework isn’t quite as scary as you might think.
by Toby Steed
Framework – Your First Framework – Part 3
by honey the codewitch
Using a popular RTOS to enable easy multithreading on your IoT gadgets
by KjellKod.cc
Don't let slow disk access bog your logger down. By using the g2log asynchronous logger you will remove the wait bottlenecks while it has the reliability of a *traditional* logging library.
by Kailash Shastri
An Object Oriented solution to Conway's Game of life problem in C#
by Alexander Sharykin
Implementations of a computing pipeline, with design explanation and code samples
by Gilberto Francisco
How to get a Website/URL thumbnail/screenshot with C#.NET 2.0 in VS 2005.
by Mojtaba Hosseini
A graphical binary tree. Features: add, remove, or search for a node. Recursive algorithm has been used
by Albara Hakami
A Windows Forms application to share a whiteboard with many clients with only one drawer, in a gamy way.
by Maxim Kartavenkov
Article describes how to make H.264 Video Encoder DirectShow Filter using NVIDIA encoder API in C#
by Dan Thyer
Remote control a squirt gun, open the garage, and water the garden all through .net
by Randy C Finch
A search for efficient algorithms to find Ruth-Aaron pairs
by r_adem
Some tips to avoid leaking memory in your iPhone apps.
by Chris La
This article explains how to create your own simple Lock Framework for C++ synchronization.
by AndyUk06
A non-nonsense guide to setting up Boost threads in Visual Studio environments.
by JasonChing
How to Manage Multiple Asynchronous Calls by using Delegates
by Peltchag
Using Generics and Extension Methods to provide easy-to-use helper for cross thread operations over WinForms controls.
by Shai Vashdi
Simplifying the use of UI threads (using the Dispatcher) & new threads in WPF
by Sacha Barber
Using HTML5 WebWorkers and a custom jQuery plug-in to create a Flickr image wall.
by matt-dot-net
A complete proxy server except instead of SSL Tunneling, will perform a "man-in-the-middle" decryption on SSL traffic allowing you to inspect the encrypted traffic
by honey the codewitch
This article explores a message passing mechanism for safe thread to thread communication
by Bruno van Dooren
How to implement named pipe server for communicating with client apps
by Bruno van Dooren
How to implement named pipe server for communicating with client apps
by Benktesh Sharma
How to implement async tasks in Android
by Lee Robie
Quick overview of the new language support for asynchonous programming in .NET 4.5.
by Vangos
During the past few months, I have been heavily experimenting with the Intel RealSense D415 & D435 depth camera. Today, I am going to show you how to easily transform between different coordinate systems. RealSense D415/435 is a low-cost device....
by Mahesh Bailwal
Basics about Windows thread which may help you in understanding how operating system implements threads.
by b4rc0ll0
Create a smart Java component used as accordion menu. Explains how to create visual transition effects, and simple icons management. Also shows how to create a hierarchy of components with an easy cascade management.
by ASP.NET Community
There are so many threads open related to this issue. After sign out when the user press BACK button on the browser, it gets him to the members page.
by Mohamed Hamdy
A boring talk about What’s really going on at runtime...
by KjellKod.cc
How to make a wait-free, lock-free CircularFifo using C++11.
by Nigel Ealand
A simple stereo sound volume meter with audio capture card selection.
by Assil
A running example of a duplex channel in WCF services.
by Sergey Alexandrovich Kryukov
Addresses questions on graphics, threading with UI, form development, printing and more
by Jaco van Staden
Basic Implementation of a Memory Queue, Thread Queue and Basic Logging Framework
by Espen Harlinn
A simple Message Queuing client and server - illustrating how to create a solution capable of handling 500 000 messages in three minutes
by Espen Harlinn
This article shows how to create a simple trade logging server using Microsoft Message Queuing and Microsoft SQL Server
by Toby Steed
Mistakes – What Are You Waiting For?
by DataBytzAI
A Windows threaded client and MVC server demonstrating interaction via XML exchange
by Leslie Zhai
Porting Axel a lighter download accelerator for Linux and other Unices to NATIVE WIN32
by Soroosh Bateni
This is basicaly Charles Putney's dns tester but also is multithreaded and can be used with a static list
by jmolivieri
Extension of boost::upgrade_mutex
by Michael Adaixo
Non blocking C# task cancelling
by Tamus
A ReaderWriterLock that cannot deadlock, and thread-safe example collections
by Mircea Neacsu
C++ thread objects and their use
by logicchild
An article that describes concurrent collections.
by Simon Bridge
Provides a multi-threading library and demonstrates its use by rendering the Mandelbrot Set
by Manabendra Roy (Manab)
.NET 4 brings a powerful Task library to support a piece of code to run in parallel processors. What it does just simply spawns threads into multiple processes using the newly written task libraries (System.Threading.Tasks) in mscorlib 4.0. Task libraries contain methods like For, ForEach and Invok
by VSNetVbHarry
Implement a progress bar and pass arguments to a LongRunningProcess.
by Sunasara Imdadhusen
PDF MERGER and PROTECTOR is the best pdf merger software which is fast and powerful way to join(Merge) PDF files with password protection as well as you can apply stamper with either any type of image or text. Using this utility you don’t required installation of Adobe Acrobat. Looks Exciting ???
by tumbledDown2earth
An event based plug-in library for enterprise application integration, extensibility and cross business application management.
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.
by Gerald Gomes
Starting modular application development using Prism, WPF, and Unity container.
by Hassan Hashemi
in this article we`ll take a look at processes and threads in windows
by Adam Robinson
The ProcessQueue manages a pool of threads to process a strongly-typed queue of items.
by Olivier Levrey
ProgressForm automatically starts a BackgroundWorker when loaded, and provides a progress bar and a cancel button.
by DaveAuld
This is a probability based simulation that demonstrates 'Swapping' is considered the best option! We also look at the effect of multi-threading and multi-process in Python.
by Zehaie M. Hailu
Python lends itself to the development of multi-threaded GUI and network applications.
by Simeon Sheye
Quality Gate One Studio is a testing framework that suggests a new approach to unit and integration testing.
by SumitJaiswal
Knowledge sharing article on WWF.
by Greg Utas
Cleaving the Gordian knot of thread safety
by Greg Utas
Keeping a program running when it would otherwise abort
by nzjoel
This is a sample implementation of Pattern A from Virgil Dobjanschi's talk at Google IO 2010.
by C_Johnson
RS232 Communication from PC to a PIC using WPF
by Noah L
Beware the data race sneak attack.
by ken.loveday
TemplateTimer: A convenient and simple MSVC / C++ timer wrapper for Windows using templates, where a class function can be easily specified for the timed event callback.
by TheAntiCol
A sample WPF application that shows simple background tasks running on the UI thread.
by Alexander Bessonov
A simple high-level IPC library with ability to use native C++ interfaces.
by Simon Bridge
Shows how to implement a system to generate events when network interfaces change.
by MSBassSinger
Writing a threaded application with a responsive UI
by Michal Stehlik
Simple way how to pack data into one file
by Ami Bar
A .NET Thread Pool fully implemented in C# with many features.
by Petr Bříza
A simple HTTP client implementation based on sockets with ability to limit upload/download speed
by Eduard Silantiev
Using various approaches to increase ASP.NET Core WEB API application's productivity
by sameer_87
A spin lock implementation which can be used for general purpose locking.
by bkelly13
Start a class as a thread, made simple
by Sacha Barber, Richard E King
Streaming live results to a web site using MSMQ/Duplex WCF/SignalR/jQuery
by Federico Di Marco
This article presents a general purpose event class called SyncEvent supporting standard thread synchronization operations like signalling and waiting, also on multiple events.
by essence
A walkthrough explanation of the issues and solutions to thread safe synchronization.
by Sacha Barber
A look into using the Task Parallel Library.
by Sacha Barber
A look into using the Task Parallel Library.
by Sacha Barber
A look into using the Task Parallel Library.
by Sacha Barber
A look into using the Task Parallel Library
by Sacha Barber
A look into using the Task Parallel Library.
by Sacha Barber
A look into using the Task Parallel Library.
by Rasik Bihari Tiwari
Let's understand the evolution from older multi-threading world to Task Parallel library (alias TPL). What are the use cases where you would want to leverage TPL instead of creating threads on your own. What are exact areas where TPL has real edge.
by Bartlomiej Filipek
This book is a must-have resource for any C++ developer!
by Jaxon7
Restoring UI Responsiveness FromContinuations (Asynch file IO)
by KK Kod
Document describes about the Delegate in C# and the usage of delegate in different scenarios
by Suresh P V
Thread pool class
by Shubhabrata Mohanty
This article describes how a Worker thread can take control of the UI and can update the UI, created by the UI thread.
by Mitendra Anand
Thread synchronization using the Win32 Event object.
by Pranjit Kalita
An introduction to interlocked class for thread synchronization in .NET Framework
by Pranjit Kalita
An introduction to semaphore in contrast to Monitor
by Chetan Kudalkar
Meaning of synchronized keyword with a deeper look
by AnthonyPaulO
These classes should solve the multi-threaded issues plaguing the collection classes for good.
by essence
Local scope delegates and Lambda expressions allow for some very smart and useful utility functions.
by Darek Danielewski
The subject of thread safety is often overlooked by even experienced developers. When designing an application or service to be utilized by multiple internal and external threads, one must account for potential issues arising from concurrent access to shared data.
by honey the codewitch
A Tiny Dynamic Home Webserver in .NET that runs on Core and DNF both (Take 2)
by Mohammad Elsheimy
SynchronizationContext class and how it affects code behavior in action, and a look at Task.ConfigureAwait()
by honey the codewitch
Take control of which thread your code gets executed on, and how it does
by Priyank Purwar
This article will help you understand Thread`s Synchronization objects with a real life example.
by honey the codewitch
Diving into some of the core plumbing behind the Windows operating system
by Jean-marc Lai
Unity interception
by honey the codewitch
Take a page from .NET and enjoy an easy way to safely pass information between threads on an ESP32
by Hassan Mokdad
In this article I will demonstrate two things: First a very basic and simple code snippet to show how we can use task factory to make our web applications more responsive, the next part will be on how to use the SignalR to broadcast messages from the Web Server to all the clients connected.
by rspercy65
This is a remake of Pramod Kumar Sing's 2002 API Viewer.
by Guillaume Waser
WPF Progress controls and comparing related threads methods
by Michael Chourdakis
Use Windows new ThreadPool through a single C++ 11 class
by J.Starkl
A windows-service which can handle different operations in separate threads and which can be controlled by a small GUI program
by Gast128
Worker thread example with std or Boost threads and C++.
by John Kenedy S.Kom
This articles uses light threading, mutex, and simple algorithm to determine file to synchronize
by Maxim Kartavenkov
Article describes basic task which are requre to solve for developing your own DirectShow Splitter filters.
by Maxim Kartavenkov
Article describes basic tasks for implementing your own File Source DirectShow filters.
by Ajay Vijayvargiya
Let's enhance our Debugger!
by Faustino Frechilla
A circular array based lock-free queue with no memory allocation on the heap and no ABA problem