Find Jobs
Hire Freelancers

C# MultiThreading design function && help

$2-8 USD / hour

Selesai
Disiarkan hampir 11 tahun yang lalu

$2-8 USD / hour

Hello, I need help making my global variables thread safe. I will be creating threads, with a regular Thread object using a for loop, which grabs the amount of threads from a numericUpDownValue on the interface. Each thread will grab variables as follows username, proxy, useragent, failedLogin: user@localhost:password431 , [login to view URL], Mozilla , 0 I have a couple of conditions where if a username fails to login to webmail, it should be added to a public List DeadAccounts and written to a text file. So, one of the scenarios that will be reached during the thread process, is when when the threads outNumber the amount of available accounts. So, maybe something like this { thead+= -1; } Will be suitable, where we kill one of the threads in a safe way. I do not want to use complicated tasks using backgroundworker and asynchronous events. I just want this to be simply thread safe, I hope you understand the task at hand. Thanks, John
ID Projek: 4657159

Tentang projek

1 cadangan
Projek jarak jauh
Aktif 11 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
Dianugerahkan kepada:
Avatar Pengguna
rEADY TO GO.
$12 USD dalam 3 hari
4.6 (8 ulasan)
4.8
4.8

Tentang klien

Bendera UNITED STATES
Panama City, United States
4.5
14
Ahli sejak Apr 14, 2011

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.