DIGIT-ARC read-only archive · snapshot: July 23, 2026

Threads in C ???

2 posts · originally from https://geek.digit.in/community/threads/threads-in-c.134194/

G
gkara Original post #1
Nov 20, 2010 at 10:49 PM
Hi,

If I want to achieve some simultaneous activity through C programming....... say I just want to display the clock in seconds at the bottom of the page while some activity is going on on the page....... how do I achieve it by C ? After all, even Jave in its initial days was developed by C, right? So, how did they achieve the threading by C? Is it something by time-delays......? Anyways, please explain it by a program.

Thank you very much in advance.

Regards,
Guru Charan.
arpanmukherjee1
Nov 22, 2010 at 10:08 AM
Thread programming examples

*computing.llnl.gov/tutorials/pthreads/

PThread is the basic API. OpenMP if more advanced and better controlled threads r needed