Commit graph

20 commits

Author SHA1 Message Date
4481d3d25d
mutex as allocation 2024-04-21 14:42:36 +02:00
f5e7a51861
nthsleep!!! 2024-04-21 14:36:54 +02:00
1ab599d606
allocate multiple condition variable but currently only use one, also cleanup helper function to keep track of allocations 2024-04-21 14:27:32 +02:00
9ebd5e0a2d
Revert "random task" as it's not efficient compared to simply taking the top task
This reverts commit 274c2d6160.
2024-04-20 21:15:46 +02:00
274c2d6160
random task 2024-04-20 20:20:54 +02:00
f12bcee6f2
newline 2024-04-19 21:59:09 +02:00
c0eb95ea38
fix memory leak 2024-04-19 21:16:04 +02:00
dc6a96abe7
better name 2024-04-19 16:27:58 +02:00
4ecc92f7ff
yay! 2024-04-19 16:24:54 +02:00
e97e332c3f
modifications
* move some .h code in .c
* remove unnecessary typedef
* use number of sleeping threads instead of global exit variable
* add some error verification
* use qlen variable

it currently works but probably janky as hell
2024-04-19 16:06:56 +02:00
6b891cf338
reformat, following initial convention 2024-04-19 15:33:03 +02:00
f95dcaf491
test with exit condition 2024-04-19 13:48:50 +02:00
62502063f4
keep number of concurrent tasks 2024-04-19 12:57:21 +02:00
8afda87953
increase max tasks and create a special structure who hold task_info - also fix an infinite loop (introducing a new one ahah) 2024-04-18 22:38:01 +02:00
51d91042da
wip: deuxieme solution 2024-04-18 17:41:41 +02:00
872f824aae
better error message and don't use errno 2024-03-15 12:57:09 +01:00
6f5414f58b
fix warning 2024-03-15 12:53:54 +01:00
4eadb9fc98
Basic pthread_create implementation 2024-03-15 12:43:44 +01:00
24a3954eed
make the program compile 2024-03-09 18:47:40 +01:00
1ba60ab73d
add sched.h and quicksort.h, alongs with template for report, makefiles and basic readme 2024-03-09 18:22:32 +01:00