1 2 >   Sort: Rank

What is DCOM Can anybod explain in detail
What is DCOM Can anybod explain in detail Short for Distributed Component Object Model, an extension of the Component Object Model (COM) that allows COM components to communicate across network boundaries. Traditional COM components can only perform interprocess communication across process boundari...
2009-03-06, 4469👍, 0💬

What is the difference between thread and process
What is the difference between thread and process? A thread is a path of execution that run on CPU, a process is a collection of threads that share the same virtual memory. A process has at least one thread of execution, and a thread always run in a process context. Note:- Its difficult to cover thr...
2007-10-22, 4743👍, 0💬

How can you avoid deadlock in threading
How can you avoid deadlock in threading? A good and careful planning can avoid deadlocks.There are so many ways Microsoft has provided by which you can reduce deadlocks example Monitor, Interlocked classes, Wait handles, Event raising from one thread to other thread, ThreadState property which you c...
2007-10-22, 5051👍, 0💬

What is ReaderWriter Locks
What is ReaderWriter Locks ? You may want to lock a resource only when data is being written and permit multiple clients to simultaneously read data when data is not being updated. The ReaderWriterLock class enforces exclusive access to a resource while a thread is modifying the resource, but it all...
2007-10-22, 5187👍, 0💬

What is ManualResetEvent and AutoResetEvent
What is ManualResetEvent and AutoResetEvent ? Threads that call one of the wait methods of a synchronization event must wait until another thread signals the event by calling the Set method. There are two synchronization event classes. Threads set the status of ManualResetEvent instances to signaled...
2007-10-22, 4998👍, 0💬

What are wait handles
What is a mutex object ? Wait handles sends signals of a thread status from one thread to other thread. There are three kind of wait modes :- ã WaitOne. ã WaitAny. ã WaitAll. When a thread wants to release a Wait handle it can call Set method. You can use Mutex (mutually exclusive) objects to a...
2007-10-22, 5133👍, 0💬

What is a monitor object
What is a monitor object? Monitor objects are used to ensure that a block of code runs without being interrupted by code running on other threads. In other words, code in other threads cannot run until code in the synchronized code block has finished. SyncLock and End SyncLock statements are provide...
2007-10-22, 4857👍, 0💬

What is use of Interlocked class
What is use of Interlocked class ? Interlocked class provides methods by which you can achieve following functionalities :- ã Increment Values. ã Decrement values. ã Exchange values between variables. ã Compare values from any thread. in a synchronization mode. Example :- System.Threading.Int...
2007-10-22, 4712👍, 0💬

How can we know a state of a thread
How can we know a state of a thread? "ThreadState" property can be used to get detail of a thread. Thread can have one or a combination of status.System.Threading. Threadstate enumeration has all the values to detect a state of thread. Some sample states are Isrunning, IsAlive, suspended etc.
2007-10-22, 4740👍, 0💬

Can we use events with threading
Can we use events with threading ? Yes, you can use events with thread; this is one of the techniques to synchronize one thread with other.
2007-10-22, 4868👍, 0💬

When working with shared data in threading how do you implement
When working with shared data in threading how do you implement synchronization ? There are certain situtations that you need to be careful with when using threads. If two threads (e.g. the main and any worker threads) try to access the same variable at the same time, you'll have a problem. This can...
2007-10-22, 4593👍, 0💬

What are Daemon threads and how can a thread be created as
What are Daemon threads and how can a thread be created as Daemon? Daemon thread's run in background and stop automatically when nothing is running program. Example of a Daemon thread is "Garbage collector". Garbage collector runs until some .NET code is running or else its idle. You can make a thre...
2007-10-22, 5017👍, 0💬

What is Thread.Join() in threading
What is Thread.Join() in threading ? There are two versions of Thread.Join :- ? Thread.join(). ? Thread.join(Integer) this returns a Boolean value. The Thread.Join method is useful for determining if a thread has completed before starting another task. The Join method waits a specified amount of tim...
2007-10-22, 5182👍, 0💬

How do I debug thread
How do I debug thread ? This window is only seen when the program is running in debug mode. In windows one of the window is “Threads”.
2007-10-22, 6965👍, 0💬

What the way to stop a long running thread
What the way to stop a long running thread ? Thread.Abort() stops the thread execution at that moment itself.
2007-10-22, 4767👍, 0💬

What is Suspend and Resume in Threading
What is Suspend and Resume in Threading ? It is Similar to Sleep and Interrupt. Suspend allows you to block a thread until another thread calls Thread.Resume. The difference between Sleep and Suspend is that the latter does not immediately place a thread in the wait state. The thread does not suspen...
2007-10-22, 4763👍, 0💬

How can we make a thread sleep for infinite period
How can we make a thread sleep for infinite period ? You can also place a thread into the sleep state for an indeterminate amount of time by calling Thread.Sleep (System.Threading.Timeout.Infi nite).To interrupt this sleep you can call the Thread.Interrupt method.
2007-10-22, 4629👍, 0💬

What's Thread.Sleep() in threading
What's Thread.Sleep() in threading ? Thread's execution can be paused by calling the Thread.Sleep method. This method takes an integer value that determines how long the thread should sleep. Example Thread.CurrentThread.Sleep(200 0).
2007-10-22, 4734👍, 0💬

How can you reference current thread of the method
How can you reference current thread of the method ? "Thread.CurrentThread" refers to the current thread running in the method."CurrentThread" is a public static property.
2007-10-22, 4706👍, 0💬

What does AddressOf operator do in background
What does AddressOf operator do in background ? The AddressOf operator creates a delegate object to the BackgroundProcess method. A delegate within VB.NET is a type-safe, object-oriented function pointer. After the thread has been instantiated, you begin the execution of the code by calling the Star...
2007-10-22, 7500👍, 0💬

How can we change priority and what the levels of priority are
How can we change priority and what the levels of priority are provided by .NET ? Thread Priority can be changed by using Threadname.Priority = ThreadPriority.Highest. In the sample provided look out for code where the second thread is ran with a high priority. Following are different levels of Prio...
2007-10-22, 4892👍, 0💬

Can you explain in brief how can we implement threading
Can you explain in brief how can we implement threading ? Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Dim pthread1 As New Thread(AddressOf Thread1) Dim pthread2 As New Thread(AddressOf Thread2) pthread1.Start() pthread2.Start() End Sub Publi...
2007-10-22, 12805👍, 0💬

Which namespace has threading
Which namespace has threading ? Systems.Threading has all the classes related to implement threading. Any .NET application who wants to implement threading has to import this namespace. Note :- .NET program always has at least two threads running one is the main program and second is the garbage col...
2007-10-22, 4701👍, 0💬

Can we have multiple threads in one App domain
Can we have multiple threads in one App domain ? One or more threads run in an AppDomain. An AppDomain is a runtime representation of a logical process within a physical process. Each AppDomain is started with a single thread, but can create additional threads from any of its threads. Note :- All th...
2007-10-22, 4914👍, 0💬

1 2 >   Sort: Rank