All Questions
Tagged with lightweight-processes c
3 questions
5
votes
5
answers
511
views
Strange behavior of clone
This is fairly simple application which creates a lightweight process (thread) with clone() call.
#define _GNU_SOURCE
#include <sched.h>
#include <stdio.h>
#include <sys/types.h>
#...
1
vote
0
answers
594
views
Confused about using buffers in C
For my assignment, I have to solve a simplified Conway's problem using lightweight processes and constant size buffers. The program reads a stream of characters, packages the stream into 10-character ...
2
votes
1
answer
74
views
Can't multithread but works with a for loop or single thread
I'm trying to get multiple threads to perform parallel calculations on a 2D array.
The user specifies how many threads they want so on a 25*25 2d array if the user wants 5 threads then each thread ...