Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!

cracked.io | Best Forum Around | Free Premium Accounts




 1285

Need Help with Threading System

by Kavin - 22 April, 2019 - 08:23 PM
This post is by a banned member (Kavin) - Unhide
Kavin  
Registered
41
Posts
6
Threads
5 Years of service
#1
I currently have a pretty good threading system but the issue is that the checker slowly stops checking after checking some amount.

The threads literally stop, I have no clue why.

Code: https://coding.is-rocket.science/sebozuyula

If anyone could give me some advice, that's greatly appreciated!  Hype
Like for more content!

Click here for content by me! :feelsgood:
This post is by a banned member (textverified) - Unhide
72
Posts
1
Threads
4 Years of service
#2
(22 April, 2019 - 08:23 PM)Kavin Wrote: Show More
I currently have a pretty good threading system but the issue is that the checker slowly stops checking after checking some amount.

The threads literally stop, I have no clue why.

Code: https://coding.is-rocket.science/sebozuyula

If anyone could give me some advice, that's greatly appreciated!  Hype



This looks like c#. If it is, use Tasks.

Also, you need to double lock this because combos is a list/array which means its a collection of memory pointers. You likely have a deadlock scenario.
This post is by a banned member (Kavin) - Unhide
Kavin  
Registered
41
Posts
6
Threads
5 Years of service
#3
(23 April, 2019 - 09:37 PM)textverified Wrote: Show More
(22 April, 2019 - 08:23 PM)Kavin Wrote: Show More
I currently have a pretty good threading system but the issue is that the checker slowly stops checking after checking some amount.

The threads literally stop, I have no clue why.

Code: https://coding.is-rocket.science/sebozuyula

If anyone could give me some advice, that's greatly appreciated!  Hype



This looks like c#. If it is, use Tasks.

Also, you need to double lock this because combos is a list/array which means its a collection of memory pointers. You likely have a deadlock scenario.

Thanks for the advice! I managed to fix it with the help of the Parallel.Invoke api. This actually made the checker faster too! Thanks for the help  :comfy:
Like for more content!

Click here for content by me! :feelsgood:

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)