Dispose should rollback the transaction. However, the behavior of Dispose is provider specific, and should not replace calling Rollback.
In other words, the using block should roll-back the transaction if you haven't called Commit; but different database providers might not implement that correctly, and might require you to explicitly call Rollback.
"These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
I can not understand how to set the timeout of a .net 6.0 web api application.
In the .net 4.8 application I set the executionTimeout parameter of the httpRuntime section in the web.config.
Is there anyone who can help me?
I have a Silverlight application I want to salvage.
I have no intention of rewriting (no chance I will trash all the work I've done on the code over the years).
Any solutions or alternatives you'd recommend?
now i want sort this data and i want a only result in both area..(or)
then if i want to take a area i will choose windows then sub area cmd then alpha-A is output the alpha-B is only result i want print only that result and it store in another file
Your definitions are not correct. You can also have multiple physical CPUs with multiple cores each.
Threads refers to "threads of execution". You can have multiple threads running on a single core, though the core will only execute code on one thread at a time, for a limited amount of time before switching to the next thread in the scheduler. You can have multiple cores running multiple threads at the same time. You can have more threads "running" than there are cores in the CPUs to run them. For example, open Task Manager and go to the Performance tab. See the "Threads" number? There's thousands of threads running in hundreds of processes, but you only have, say, 8 cores to run them all. Most threads are sitting idle, waiting for a core to execute them, or waiting for I/O to complete, or whatever else.
Windows gives the illusion of running thousands of threads using "pre-emptive multitasking". This allows a thread to execute on a core for a small amount of time before being stopped and the core switches to the next thread in the scheduler.
A Task is NOT a thread. In some respects, it looks like a thread of execution, but it's really an abstraction, or wrapper around a block of work to do. Tasks are scheduled to run on a pool of threads (a ThreadPool). You can have more tasks running than there are threads in the pool. Tasks can sit idle waiting for an available thread to a task, or part of a task.
A single task can be executed by multiple threads. Thread0 can execute a task for a limited time, then the task is idled, waiting for execution to be resumed by either another thread, or the same thread that was executing it before. Thread1 can pick up where Thread0 left off, or Thread0 can come back around and pick up where it left off.
Think of it as layers, with CPUs at the bottom of the stack, cores on top of that, then threads on top of cores, and Tasks on top of threads. Each layer you go higher in the stack can have more items in it than the layer below.
Parallel programming is a technique, or library, that makes it easier to write code to execute on multiple threads, or cores, to accomplish work. The Task Parallel Library is an IMPLEMENTATION of parallel programming. The TPL makes it easier to write code that uses multiple threads to accomplish work.
Yes. Under Windows, it's been that way since the dawn of Windows 2.1, back in, what, 1988-ish?
Today, you can just open Task Manager, click on the Performance tab, and the CPU tab on the left. See the "Threads" number? See the "Core" and "Logical processors" numbers? How else are you going to get thousands of threads running on so few processors?