Skip to content

Commit 78871fe

Browse files
committed
gha failing on multithreaded t est
1 parent 605d078 commit 78871fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code_to_optimize/bubble_sort_multithread.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def multithreaded_sorter(unsorted_lists: list[list[int]]) -> list[list[int]]:
88
sorted_lists = [None] * len(unsorted_lists)
99

1010
# Use ThreadPoolExecutor to manage threads
11-
with concurrent.futures.ThreadPoolExecutor(max_workers=4) as executor:
11+
with concurrent.futures.ThreadPoolExecutor(max_workers=2) as executor:
1212
# Submit all sorting tasks and map them to their original indices
1313
future_to_index = {
1414
executor.submit(sorter, unsorted_list): i

0 commit comments

Comments
 (0)