What is displayed by the following program after the call to pthread_create?


#include
#include

void *thread(void *);

int main()
{
pthread_t tid;

pthread_create(&tid, NULL, thread, NULL);
cout << "After pthread_create" << endl;

return 0;
}

void *thread
(void *argument)
{
return NULL;
}

a. The main thread will display "After pthread_create"
b. The new thread will display "After pthread_create"
c. Neither the main thread nor the new thread will display "After pthread_create"
d. The program does not create a new thread
e. Both the main thread and new thread will display "After pthread_create"


a. The main thread will display "After pthread_create"

Computer Science & Information Technology

You might also like to view...

Use the ________ Wizard with Access to create a direct link between the table or query and the Word document

Fill in the blank(s) with correct word

Computer Science & Information Technology

Earned value is also referred to as ____.

A. SV B. BCWP C. ACWP D. BCWS

Computer Science & Information Technology

All of the following statements are TRUE regarding PivotCharts EXCEPT:

A) Once a PivotChart is created, all formatting elements from a regular chart are no longer available. B) When the PivotTable data are rearranged, they are automatically updated in the PivotChart. C) When making changes to the PivotChart the corresponding changes are seen in the PivotTable. D) PivotCharts provide a visual representation of the data in a PivotTable.

Computer Science & Information Technology

Which command can be used on a Windows computer to view the IP settings?

A. ip B. ss C. ipconfig D. ifconfig

Computer Science & Information Technology