175k views
3 votes
G_rw_lock.h: The header file containing needed typedefs and prototypes for user callable functions. This file should at a miniμm contain the typedef and function prototypes given above.

rw_lock.c: The actual source code for the user callable functions and any other support routines you may need.

a) True
b) False

1 Answer

7 votes

Final answer:

The question relates to the expected contents of a header file and source code file for a reader-writer lock in C programming.

Step-by-step explanation:

The question refers to the structure and content of two files related to implementing a reader-writer lock in programming, specifically in C. The g_rw_lock.h file is expected to contain typedefs and function prototypes for the user callable functions to manage the lock. Meanwhile, the rw_lock.c file should contain the source code implementing these functions, along with any additional support routines necessary for the lock's functionality.

User Jastend
by
8.6k points