<< < 104 105 106 107 108 109 110 111 112 113 114 > >>   Sort: Rank

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, 5190👍, 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, 4906👍, 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, 5379👍, 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, 5518👍, 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, 7438👍, 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, 5107👍, 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, 5110👍, 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, 5067👍, 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, 5084👍, 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, 5058👍, 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, 8033👍, 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, 5302👍, 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, 13492👍, 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, 5052👍, 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, 5453👍, 0💬

Did VB6 support multi-threading
Did VB6 support multi-threading ? While VB6 supports multiple single-threaded apartments, it does not support a freethreading model, which allows multiple threads to run against the same set of data.
2007-10-22, 5142👍, 0💬

What is a Thread
What is a Thread ? A thread is the basic unit to which the operating system allocates processor time.
2007-10-22, 4962👍, 0💬

What is Multi-threading
What is Multi-threading ? Multi-threading forms subset of Multi-tasking. Instead of having to switch between programs this feature switches between different parts of the same program. Example you are writing in word and at the same time word is doing a spell check in background.
2007-10-22, 4916👍, 0💬

What is Multi-tasking
What is Multi-tasking ? It’s a feature of modern operating systems with which we can run multiple programs at same time example Word, Excel etc.
2007-10-22, 5106👍, 0💬

What is equivalent for regsvr32 exe in .NET
What is equivalent for regsvr32 exe in .NET ? Regasm
2007-10-22, 5208👍, 0💬

What are types of compatibility in VB6
What are types of compatibility in VB6? There are three possible project compatibility settings: ã No Compatibility ã Project Compatibility ã Binary Compatibility No Compatibility With this setting, new class ID’s, new interface ID’s and a new type library ID will be generated by VB each time ...
2007-10-22, 5112👍, 0💬

How do you do object pooling in .NET
How do you do object pooling in .NET ? COM+ reduces overhead by creating object from scratch. So in COM+ when object is activated its activated from pool and when its deactivated it’s pushed back to the pool. Object pooling is configures by using the “ObjectPoolingAttribute” to the class. Note:- Wh...
2007-10-22, 5279👍, 0💬

How many types of Transactions are there in COM + .NET
How many types of Transactions are there in COM + .NET ? There are 5 transactions types that can be used with COM+. Whenever an object is registered with COM+ it has to abide either to these 5 transaction types. Disabled: - There is no transaction. COM+ does not provide transaction support for this ...
2007-10-22, 4849👍, 0💬

How to implement DTC in .NET
How to implement DTC in .NET ? DTC is implemented using COM+. Following are the steps to implement COM + in .NET :- ã gEnterpriseServiceh namespace has all the classes by which we can implement DTC in .NET. You have to add reference gEnterpriseServiceh namespace. omits it all together, then w...
2007-10-22, 5844👍, 0💬

<< < 104 105 106 107 108 109 110 111 112 113 114 > >>   Sort: Rank