¡@

Home 

c# Programming Glossary: locking

How do I delete a file which is locked by another process in C#?

http://stackoverflow.com/questions/1040/how-do-i-delete-a-file-which-is-locked-by-another-process-in-c

I suspect the method must be able to find which process is locking the file perhaps by tracking the handles although I'm not sure.. to complete the file delete using File.Delete . c# file locking share improve this question Killing other processes is not..

Volatile vs. Interlocked vs. lock

http://stackoverflow.com/questions/154551/volatile-vs-interlocked-vs-lock

. But is there a reason not to do this c# multithreading locking volatile interlocked share improve this question Worst won't.. problems as above which is great. The problem is locking is slow and if you re use the locker in some other place which.. place which is not really related then you can end up blocking your other threads for no reason. Best Interlocked.Increment..

What NoSQL solutions are out there for .NET? [closed]

http://stackoverflow.com/questions/1777103/what-nosql-solutions-are-out-there-for-net

processes Pub Sub push event based comms distributed locking CQRS Event Source Unique Id generator etc. Even if you're not.. dynamic languages here's how easy it is to create a non blocking web server hosting named counters in node.js CoffeeScript app.get..

C# Object Pooling Pattern implementation

http://stackoverflow.com/questions/2510975/c-sharp-object-pooling-pattern-implementation

target size yet. I've tried to optimize this to minimize locking and I hope I haven't made any mistakes I have tested this under..

Why is lock(this) {…} bad?

http://stackoverflow.com/questions/251391/why-is-lockthis-bad

Or is there some more insidious reason c# multithreading locking share improve this question It is bad form to use this in.. it is generally out of your control who else might be locking on that object. In order to properly plan parallel operations.. access restrictions to it and it will encapsulate the locking mechanism. Using this violates encapsulation by exposing part..

How do I find out which process is locking a file using .NET?

http://stackoverflow.com/questions/317071/how-do-i-find-out-which-process-is-locking-a-file-using-net

do I find out which process is locking a file using .NET I've seen several of answers about using.. to be able to find out in my own code C# which process is locking a file. I have a nasty feeling that I'm going to have to spelunk.. test fails with locked file deleting locked file c# file locking share improve this question One of the good things about..

Compare using Thread.Sleep and Timer for delayed execution

http://stackoverflow.com/questions/391621/compare-using-thread-sleep-and-timer-for-delayed-execution

callbackState.Timer.Dispose state millisecond 1 The locking should prevent the timer callback from trying to free the timer..

Dynamic LINQ OrderBy on IEnumerable<T>

http://stackoverflow.com/questions/41244/dynamic-linq-orderby-on-ienumerablet

Note that the choice of Hashtable is due to favorable locking semantics using Microsoft.CSharp.RuntimeBinder using System..

Use of null check in event handler

http://stackoverflow.com/questions/672638/use-of-null-check-in-event-handler

delegate On the other hand you might want some sort of locking just to make sure that you've got the latest set of handlers..

Is the C# static constructor thread safe?

http://stackoverflow.com/questions/7095/is-the-c-sharp-static-constructor-thread-safe

is thread safe for the initial construction that is no locking or null testing is required for constructing the Singleton object...

How do you do AppBar docking (to screen edge, like WinAmp) in WPF?

http://stackoverflow.com/questions/75785/how-do-you-do-appbar-docking-to-screen-edge-like-winamp-in-wpf

any complete guidance on doing AppBar docking such as locking to the screen edge in WPF I understand there are InterOp calls..

Is there a way to check if a file is in use?

http://stackoverflow.com/questions/876473/is-there-a-way-to-check-if-a-file-is-in-use

if anyone has a better way of doing it c# file io file locking share improve this question I've used this code for the past..