" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi

Pausing the main Thread statements until execution of another thread completes

Posted on November 24th, 2015 by Vivek Chaudhary

Sometimes we need to pause the main thread statements until the other thread completes. (Suppose if other thread produces/modifies the data to be used by main thread. If we do not pause the main thread statements in such case then main thread statements may use the data which is not modified/changed yet and an exception […]

A single step solution to avoid Deadlock in Multi-threading

Posted on November 23rd, 2015 by Rabinarayan Biswal

In its simplest form, deadlock occurs when each of two (minimun two) threads try to acquire a lock on a resource already locked by another. E.g: Take example of two threads 1. thread 1 2. Thread 2 And two resources 1. Resource 1 2. Resource 2 Thread 1 locked on Resources 1 and tries to […]

Performing cross thread operations using SyncronizationContext

Posted on November 23rd, 2015 by Bibhudutta Pradhan

Many of us may be familiar with the restriction against modifying a Control from any thread other than the one in which it was created, if we do so we get a CrossThreadOpeartionException. Instead, an event generated on another thread must be marshaled to the Control’s thread using its (or the Form that it belongs […]

Edit & Format the content in the RichTextBox Windows Application through Wordpad

Posted on November 23rd, 2015 by Ashutosh Mahto

This tip is targeted for a specific task in vb.net. The problem, not actually a problem but the task is to edit the content in the RichTextBox of our Windows application through Wordpad and just update our control with that formatted text. Well, the simple way to do this job is 1. OpenĀ  the Editor […]