65 Commits

Author SHA1 Message Date
Nemo D'ACREMONT
4c3463d3fe
feat: add union-find-delete data structure 2025-04-18 19:51:51 +02:00
Alessandre Laguierce
964a810fad feat: remove yielding after unlocking mutex 2025-04-09 17:41:18 +02:00
Alessandre Laguierce
37f76b02f6 docs: remove deprecated comments 2025-04-08 22:17:11 +02:00
Alessandre Laguierce
b7a8aa4977 fix: conditional compilation for fibonacci 2025-04-08 22:16:48 +02:00
Nemo D'ACREMONT
95457372b6
feat: add mutex prio to prevent deadlock on mutex 2025-04-08 19:06:40 +02:00
Nemo D'ACREMONT
8d023ed201
opti: change scheduler to prioritize threads locking mutex 2025-04-08 18:59:59 +02:00
Martin Eyben
f2a00ae698 feat: 2000 2025-04-04 18:06:34 +02:00
Martin Eyben
597cf2cda0 feat: 2500 2025-04-04 18:05:37 +02:00
Martin Eyben
8c1dfa3248 feat: 3000 2025-04-04 18:04:21 +02:00
Martin Eyben
1ad1a23761 feat: 2000 2025-04-04 18:03:19 +02:00
Alessandre Laguierce
9edbfd9bfb fix: test with 90 2025-04-04 17:56:53 +02:00
Alessandre Laguierce
b0214fc27b feat: test with 5k 2025-04-04 17:54:30 +02:00
Alessandre Laguierce
ac2b916d2e fix: valgrind 2025-04-04 17:44:55 +02:00
Alessandre Laguierce
af7960b264 feat: create a pool of threads when setuping main thread 2025-04-04 17:42:31 +02:00
Nemo D'ACREMONT
da29a7eea4
fix: revert removing unused header 2025-04-04 17:18:53 +02:00
Nemo D'ACREMONT
95d8b9939f
refactor: rename fifos to better names 2025-04-04 17:12:16 +02:00
Nemo D'ACREMONT
e45992ac9d
fix: remove malloc in mutex and update tests 2025-04-04 16:52:14 +02:00
Alessandre Laguierce
1aeb759d77 feat: add fibo strategy 2025-04-02 23:01:32 +02:00
Alessandre Laguierce
bb29b2f53a style: use macro for status 2025-04-02 22:04:56 +02:00
Alessandre Laguierce
589c6551f7 revert: awful time on thor 2025-04-02 19:28:42 +02:00
Alessandre Laguierce
f6b03da814 fix: resolve segfaults 2025-04-02 19:21:55 +02:00
Alessandre Laguierce
7f1aa05f3e feat: better scheduling for fibo 2025-04-02 15:24:30 +02:00
Alessandre Laguierce
3475ce4e8f feat: add cache for last_thread_t structure 2025-04-02 08:35:57 +02:00
Martin Eyben
9b2e156869 fix[mutex]: valgrind uninitialised values 2025-03-28 14:42:15 +01:00
Martin Eyben
34c98beaea Merge branch 'mutex' 2025-03-28 14:39:21 +01:00
Nemo D'ACREMONT
d0f714c5e1
feat: add mutex 2025-03-28 14:02:44 +01:00
Martin Eyben
40ed1bf6a7 fix: compilation 2025-03-28 10:05:22 +01:00
Alessandre Laguierce
fe48f0d61b feat: correct few things to converge to Faverge's happiness 2025-03-28 09:36:08 +01:00
Alessandre Laguierce
177e8807c5 feat: save freed thread to not realloc after 2025-03-27 18:03:14 +01:00
Alessandre Laguierce
efaddc4f99 fix: initialize value for main thread 2025-03-25 19:23:14 +01:00
Alessandre Laguierce
16a02f00ab fix: valgrind for deadlocking 2025-03-25 19:20:33 +01:00
Martin Eyben
f6b199d601 feat: add deadlock prevention, still a valgrind issue when returning EDEADLCK 2025-03-25 13:52:50 +01:00
Martin Eyben
f6a78b3516 feat: add deadlock verification 2025-03-25 10:35:02 +01:00
Martin Eyben
ea5017321b feat[debug]: add current thread in trace 2025-03-25 01:25:39 +01:00
Martin Eyben
aece33c73b fix: typo 2025-03-25 00:26:20 +01:00
Martin Eyben
25d2e181e1 fix: on join check if the thread is not waiting the current thread 2025-03-24 15:21:22 +01:00
Alessandre Laguierce
bf8e6e9d0d feat: reduce memset size 2025-03-24 09:12:41 +01:00
Alessandre Laguierce
c45750b0af feat: make stack last field 2025-03-24 09:01:09 +01:00
Alessandre Laguierce
a4cb6bcdba feat: use a single allocation per entry 2025-03-23 20:19:23 +01:00
Alessandre Laguierce
f542af82d1 fix: single variable was used twice at the same time for two different values 2025-03-23 18:02:17 +01:00
Alessandre Laguierce
2df30423dd perf: better performances before using two lists 2025-03-23 17:35:49 +01:00
Alessandre Laguierce
c3839b140b docs: add comments 2025-03-22 20:15:38 +01:00
Alessandre Laguierce
0b068a07de feat: call clear_context in doubt 2025-03-22 19:06:12 +01:00
Alessandre Laguierce
42cd0976ce fix: deregister valgrind stack at the end 2025-03-22 19:03:47 +01:00
Alessandre Laguierce
290967d9db feat: free all dynamic allocated stacks at the end 2025-03-22 19:00:24 +01:00
Alessandre Laguierce
987e137377 feat: begin rewrite 2025-03-21 20:38:08 +01:00
Martin Eyben
c5c1b74906 fix: use a real fifo for yield 2025-03-21 17:44:35 +01:00
damien DELPY
9e02e4ef67
fix(clang): revert clang on thread. 2025-03-21 16:15:25 +01:00
damien DELPY
93ad044bb1
fix(clang): format thread files. 2025-03-21 15:19:28 +01:00
damien DELPY
ad460cc15b
fix(clang): format utils files. 2025-03-21 15:18:39 +01:00