Question: Consider the following code: void Listorder (void *arg) int start =( int ) argi for (int count = start; count >0; count-=2) { cout count

 Consider the following code: void Listorder (void *arg) int start =(
int ) argi for (int count = start; count >0; count-=2) {
cout count ; \} cout endl; return ; Which of the following

Consider the following code: void Listorder (void *arg) int start =( int ) argi for (int count = start; count >0; count-=2) { cout count ; \} cout endl; return ; Which of the following code snippets correctly creates a Pthread that uses the ListOrder function to produce the following output: In moin: creating thread 2018161412108642 Version 1: Version 2: Version 2; Version 3: Version 4: pthread_t id; int rc; "In main: creating thread In"; cout "In int start_value = 20; rc = pthread_create(\&id, NULL, Listorder, (void \&) start_value); if (rc) cout "ERROR; return code from pthread_create() is % re endl; return -1; Version 5: pthread_t id; int rc; cout "In main: creating thread In"; int start_value =20; rc= pthread_create(\&id, NULL, Listorder, (void*) \&start_value); if (rc) f cout "ERROR; return code from pthread_create() is " rc end1; return 1; \} pthread_exit( ); Version 1 Version 2 Version 3 Version 4 Version 5

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!