Questions tagged [contention]

Questions about any type of resource contention. Use in conjunction with the applicable tag such as [file-access], [memory] or [locking] to indicate the type of resource being referred to.

Questions about any type of resource contention. Use in conjunction with the applicable tag such as , or to indicate the kind of resource being referred to.

88 questions
2
votes
3 answers

Exception of type 'System.IO.IOException' occurred in mscorlib.dll - The process cannot access the file because it is being used by another process

Probably there are number of questions like this one on SO but none of them has been able to fix my issue. I am creating a text file programatically and witting the text in to it using this code: for (int y = 0; y < image.Height; y++) …
G droid
  • 956
  • 5
  • 13
  • 36
2
votes
2 answers

oracle row contention causing deadlock errors in high throughtput JMS application

Summary: I am interested in knowing what's the best practice for high throughput applications that have bulk messages trying to update the same row and get oracle deadlock errors. I know you cannot avoid those errors but how do you recover from them…
Robin Bajaj
  • 2,002
  • 4
  • 29
  • 47
2
votes
1 answer

How can I coordinate port usage across processes?

I need to have several processes coordinated with each other on a machine such that each process chooses a different port for creating a socket to communicate with a different machine. Each process must choose a port number from a range of…
WilliamKF
  • 41,123
  • 68
  • 193
  • 295
1
vote
1 answer

Minimize lock contention c++ std::map

I have an std::map ObjectMap. Now I need to update the map and update can happen via multiple threads. So, we lock the map for updates. But every update leads to a lengthy computation and hence leads to lock contention. Let's consider…
shiv chawla
  • 591
  • 1
  • 8
  • 20
1
vote
3 answers

Multithreaded resource contention

I'm profiling a multithreaded program running with different numbers of allowed threads. Here are the performance results of three runs of the same input work. 1 thread: Total thread time: 60 minutes. Total wall clock time: 60 minutes. 10…
Amy B
  • 108,202
  • 21
  • 135
  • 185
1
vote
0 answers

Debugging a nasty Lock Contention issue in ASP.NET Core MVC

We are dealing with a nasty lock contention issue in a high traffic ASP.NET Core MVC app in .NET 6, hosted as in-process in IIS Windows Server. We are trying to enable a feature that makes an Http call to an internal service, and when we enable the…
Gpower2
  • 11
  • 2
1
vote
1 answer

Cloud (Firestore) Datastore Hotspotting and Indexing Date

I have tried to research this topic a lot lately, regarding the hotspotting behavior of Cloud Datastore. As I understand, reading/writing to indexed fields that are monotonically increasing can lead to contention and degradation of performance…
1
vote
1 answer

VFP Database contention issue

I have a very large VFP app. I use the VFE framework. My app uses the native VFP database. App is 20 years old and grows daily. For 10 years I very intermittently get crashes. It can occur multiples times in same day. It may not occur for a week or…
vfpjohn
  • 57
  • 7
1
vote
1 answer

Thread Starvation vs Contention?

According to Oracle docs about "thread starvation", Starvation describes a situation where a thread is unable to gain regular access to shared resources and is unable to make progress. This happens when shared resources are made unavailable for…
1
vote
1 answer

GAE Push Queue database contention during datastore query

Summary I have an issue where the database writes from my task queue (approximately 60 tasks, at 10/s) are somehow being overwritten/discarded during a concurrent database read of the same data. I will explain how it works. Each task in the task…
1
vote
3 answers

Weird things with machine.config

I am trying to tune IIS to reduce contention, and following many articles on the .net I am trying to locate this in the file to no result: ... .... …
dexter
  • 7,063
  • 9
  • 54
  • 71
1
vote
6 answers

How to make writing method thread safe?

I have multiple threads to call one method in writing contents from an object to file, as below: When I use 1 thread to test this method, the output into my file is expected. However, for multiple threads, the output into the file is messy. How to…
user697911
  • 10,043
  • 25
  • 95
  • 169
1
vote
1 answer

Why there are contentions in places with no lockings?

I run a concurrency profile of a software in Visual Studio 2010 and found some contentions on lines of code that are not within locks. Say, a new operation to create an array, or a thread-local DynamicMethod.Invoke call. Some contentions are on…
Steve
  • 4,935
  • 11
  • 56
  • 83
1
vote
1 answer

Dynamic allocation in CUDA - lower contention than handwritten solution?

Now CUDA allows dynamic allocation on the global memory. However, I couldn't find any reference to the scalability of that malloc function: is it any better than, for instance, preallocate a chunk of memory and then just assign the next memory chuck…
1
vote
1 answer

Why concurrency contention tool in vs 2010 doesn't use managed thread ids?

If you have used the concurrency contention profile tool provided in vs 2010, you will notice that all the thread ids used in the report are not managed thread ids, which is annoying. I want to know which thread is which one and how can I easily map…
Steve
  • 4,935
  • 11
  • 56
  • 83