typedef struct
{
int value;
struct process *L;
}
semaphore;
can any one explain me this piece of code.
Answers
Answered by
0
Answer:
struct and typedef are two very different things. The struct keyword is used to define, or to refer to, a structure type. ... A typedef , in spite of the name, does not define a new type; it merely creates a new name for an existing type.
int value means integer value.
Semaphore is simply a variable that is non-negative and shared between threads.
I don't know about rest of it.
Similar questions