Find Jobs
Hire Freelancers

C# MultiThreading design function && help

$2-8 USD / hour

Completed
Posted almost 11 years ago

$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
Project ID: 4657159

About the project

1 proposal
Remote project
Active 11 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
rEADY TO GO.
$12 USD in 3 days
4.6 (8 reviews)
4.8
4.8

About the client

Flag of UNITED STATES
Panama City, United States
4.5
14
Member since Apr 14, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.