Skip to main content

All Questions

Filter by
Sorted by
Tagged with
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> #...
lstipakov's user avatar
  • 3,238
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 ...
kemotoe's user avatar
  • 1,777
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 ...
MikeC's user avatar
  • 255