I am trying to convert this to parallel to improve the upload times of a file but with what I have tried it has not had great changes in time. I want ...
I am trying to convert this to parallel to improve the upload times of a file but with what I have tried it has not had great changes in time. I want ...
Can we call multiple asynchronous methods and ensure that the returned object must wait till all methods run are complete? Here is the scenario. I ha ...
My apologies if this has been asked but I'm running Parallel.Foreach to speed up business logic and passing in 4 partitions of List<item>. A pa ...
I have a powershell script that is trying to get every AD group and their members. Since my real code is running a Get-ADUser on every user in every g ...
input code: code I have now: for (int i4 = 0; i4 < ba_result_out.Length; i4 += c.i_key_size) { k = BitConverter.ToInt64(spn_data.Slice(i4, c.i_ ...
I am using C# and ASP.NET Core 6 MVC. I have a requirement to fetch all results from API using offset whether it is just 64 records or 6300 records. ...
I have this super exciting program it's a console application, and I want to add a progress bar, but I don't understand how to add an event that kicks ...
I have a self-referenced table like below. key parent Description A NULL ...
When I am using foreach loop or Parallel.ForEach with lock, the data is coming out properly but when I am using Parallel.ForEach with no lock, the dat ...
I have the following code that creates URLs for me which I need to download .csv file. I'm using loop since I have more than 300,000 different URLS: ...
I'm traing to start 2 remote packet captures at same time on a winServer2016 with two nics, with tshark 3.4.5 and powershell 7.2.1. The problem is th ...
I am getting this as an error in Visual Studio 2022 Avoid unsupported fire-and-forget async-void methods or delegates. Unhandled exceptions will c ...
I have an windows form, where I can enter the number of records to create at once. If I mention to create 1 million records, it takes more time using ...
In the below code total is always 45, but total1 is unpredictable. I feel total should be unpredictable too as threads are not depending whether lock ...
In a .NET 6 project, I have to call a web API which is offset paginated (page/per page) and I would like to make the n calls parallel as far as possib ...
I am trying to fill my SQL Server database with 3 different .txt files I accomplished this using regular for but it takes a long time. Then since the ...
My objective is to use foreach instead of the conventional nested for loop to save running time. Let's consider the following case. Using the conve ...
I have some c# code for parallel BFS from other stackOverflow post. Can you explain please the line What is Keys? How to realise Node class like ...
We have created a Logic App which iterates over some elements of an array in the input json, and then appends the output of each iteration to another ...
I am trying to run series of commands on remote Windows Servers. Some of these servers are up and some of them not. To some I have access and to some ...