@ptt-bds Bác có 10 luồng thì đầu tiên nếu không có gì xảy ra nó sẽ lấy 10 dòng đầu tiên, sau đó thì cứ luồng nào "ra đi" nó sẽ lấy dòng tiếp theo, đâu có theo quy luật như 1,11,21,31 vs luồng 1 như bác nói đâu.
How re-start list .txt when turn-off Reuse
-
I have 2 list and run with 2 threads like picture

Resource #1 , #2: Turn-off Reuse
When i run, the logic when like that:
Example: Resource #2 Value 4 is TRUE with AA - 1 (false) - 1
A - 2 (false) - 2
A - 3 (false) - 2
A - 4 (true) - 1The Software will working like that, and i do it success. But now i have the problems appear
- When A - 4 (true) - 1 , i want the software next to B , and start Resource #2 from value 1 . But it not, it will continue from 5 and 6 ..
B - 5 (false) - 1
B - 6 (false) - 2Example: Resource #2 Value 2 is TRUE with B
But Software come from 5 and continue => i never got a TRUE for B
==> Finally, software show all data has been processed !!!And Resource #1 still have C .
The software not working like i think.
and i think, maybe the issue from function "Reuse"
I hope admin/developer of the tool read that, and add new function. Help me solve that problems.
The function help B , C start value 1 to 6 and effect with multi-threadThank you
-
@bomden11 said in How re-start list .txt when turn-off Reuse:
When A - 4 (true) - 1 , i want the software next to B , and start Resource #2 from value 1 . But it not, it will continue from 5 and 6 ..
Resource system is not designed to work like this, you need to use lists and global variables.