merhaba,
web sayfasında butona tıklandığında başka bir konsol uygulaması çalıştırıyorum. burada bir sorun yok ancak iki tarayıcı açıp aynı işlemi yaptığımda işlem süresi iki katına çıkıyor.
aşagıda gördüğünüz işlem yaklaşık 3-4 saniye sürüyor. ancak ikinci bir tarayıcı açıp sırayla butonlara tıkladığımda iki sayfadan da aynı aynda cevap dönüyor ve cevap süresi 7-8 saniye oluyor. bunu nasıl çözebilirim.
konsol uygulaması EMGU.CV ve ILNumerics kütüphanelerini kullanıyor.
teşekkürler.
protected void Button1_Click(object sender, EventArgs e)
{
Stopwatch sw = new Stopwatch();
sw.Start();
string ImageNo = TextBox1.Text;
string ImagePath = TextBox1.Text;
string args = "op=llc f=" + ImagePath;
string ExePath = @"D:\\LLC_Console.exe";
ProcessStartInfo processInfo = new ProcessStartInfo();
processInfo.FileName = ExePath;
if (args != "") processInfo.Arguments = args;
processInfo.CreateNoWindow = true;
processInfo.UseShellExecute = false;
processInfo.RedirectStandardError = true;
processInfo.RedirectStandardOutput = true;
Process process = Process.Start(processInfo);
process.WaitForExit();
string HistogramPath = ImagePath + ".csv";
double[] hist = Islemler.CSV2Array(HistogramPath);
sw.Stop();
Label1.Text = "hist.Length + " - elapsed : " + sw.Elapsed;
}