Threading code snippets (22)

How to prevent opening multiple instance of application

Published: 11. January 2014 | Updated: 11. January 2014
Categories: Winforms WPF
Tags: C# Security Threading Windows Winforms WPF

How to enumerate windows threads

Published: 12. February 2012 | Updated: 12. February 2012
Categories: Windows
Tags: C# Threading Win32 Windows WMI

How to implement thread safe Singleton

Published: 1. February 2012 | Updated: 1. February 2012
Categories: Implementations
Tags: C# Design Patterns Threading

How to terminate thread

Published: 3. November 2011 | Updated: 3. November 2011
Categories: Threading
Tags: C# Threading

How to find out whether thread is alive

Published: 3. November 2011 | Updated: 3. November 2011
Categories: Threading
Tags: C# Threading

How to find out whether thread belongs to the managed thread pool

Published: 3. November 2011 | Updated: 3. November 2011
Categories: Threading
Tags: C# Threading

How to get/set thread to background

Published: 3. November 2011 | Updated: 3. November 2011
Categories: Threading
Tags: C# Threading

How to get thread state

Published: 3. November 2011 | Updated: 3. November 2011
Categories: Threading
Tags: C# Threading

How to get/set thread priority

Published: 3. November 2011 | Updated: 3. November 2011
Categories: Threading
Tags: C# Threading

How to get/set thread name

Published: 3. November 2011 | Updated: 3. November 2011
Categories: Threading
Tags: C# Threading

How to sleep/suspend thread

Published: 24. October 2011 | Updated: 26. October 2011
Categories: Threading
Tags: C# Threading

How to exchange objects as an atomic operation

Published: 24. October 2011 | Updated: 26. October 2011
Categories: Threading
Tags: C# Threading

How to adds two integers as an atomic operation

Published: 24. October 2011 | Updated: 26. October 2011
Categories: Threading
Tags: C# Threading

How to increment integer as an atomic operation

Published: 24. October 2011 | Updated: 26. October 2011
Categories: Threading
Tags: C# Threading

How to decrement integer as an atomic operation

Published: 24. October 2011 | Updated: 26. October 2011
Categories: Threading
Tags: C# Threading

How to read 64-bit value as an atomic operation

Published: 24. October 2011 | Updated: 26. October 2011
Categories: Threading
Tags: C# Threading

How to exchange values with comparision as an atomic operation

Published: 24. October 2011 | Updated: 26. October 2011
Categories: Threading
Tags: C# Threading

How to list process threads

Published: 9. October 2011 | Updated: 26. October 2011
Categories: Processes
Tags: C# Threading Windows

How to get thread id

Published: 25. October 2011 | Updated: 25. October 2011
Categories: Win32
Tags: C# Threading Win32 Windows

How to get / set current culture

Published: 27. January 2009 | Updated: 11. October 2011
Categories: Globalization
Tags: C# Globalization Threading

How to start thread with parameter

Published: 21. December 2008 | Updated: 21. December 2008
Categories: Threading
Tags: C# Threading

How to access control from different thread

Published: 15. December 2008 | Updated: 20. December 2008
Categories: Threading Winforms
Tags: C# Controls Threading Winforms