Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #54.9K
~5K People Reached
Favorite Tags
c x 3
Member Avatar for ALi_66
Member Avatar for sciprog1

Hello Members, I want to write a C program which creates two threads and uses a semaphore (as a critical section) to sleep for 1 second and then terminate. I am having a hard time with some of the C Syntax for semaphores. Is it possible to post an example …

Member Avatar for charlottegracie
0
4K
Member Avatar for Harshit_4

#include<stdio.h> #include<conio.h> void main() { float r, area; char ch = 'y'; do { system("cls"); printf("Enter the radius of the circle -: "); scanf("%f", &r); area = 3.14 * r * r; printf("The area of the circle is -: %f", area); printf("\n"); printf("Do u want to try again (y/n) -: …

Member Avatar for charlottegracie
0
178