HiYesItaStrikeN…

Hi

Yes

Ita

Strike

No under boooo

  • yes
  • yesss
  • yesssss
  1. one
  2. two
  3. tree
I like this so much
– edin hoffin
More than you
– einstein
Love this
More pages here
More options
ls unix
cd go
ahhhh
fun fun fun int main
wtf???

No more of this

Ok?? underline!!! 😀 Full alignment

Colorama 😀

Plain text

ls /unix

^^^^^

directory!!!

#include <sto>

1:  #include <pthread.h>  
2:  void *print_message_function( void *ptr );  
3:  main()  
4:  {  
5:     pthread_t thread1, thread2;  
6:     char *message1 = "Thread 1";  
7:     char *message2 = "Thread 2";  
8:     int iret1, iret2;  
9:    /* Create independent threads each of which will execute function */  
10:     iret1 = pthread_create( &thread1, NULL, print_message_function, (void*) message1);  
11:     iret2 = pthread_create( &thread2, NULL, print_message_function, (void*) message2);  
12:     /* Wait till threads are complete before main continues. Unless we */  
13:     /* wait we run the risk of executing an exit which will terminate  */  
14:     /* the process and all threads before the threads have completed.  */  
15:     pthread_join( thread1, NULL);  
16:     pthread_join( thread2, NULL);   
17:     printf("Thread 1 returns: %d\n",iret1);  
18:     printf("Thread 2 returns: %d\n",iret2);  
19:     exit(0);  
20:  }  
21:  void *print_message_function( void *ptr )  
22:  {  
23:     char *message;  
24:     message = (char *) ptr;  
25:     printf("%s \n", message);  
26:  }  

int main (bye bye) 😀

 #include <pthread.h> void *print_message_function( void *ptr ); main() { pthread_t thread1, thread2; char *message1 = "Thread 1"; char *message2 = "Thread 2"; int iret1, iret2; /* Create independent threads each of which will execute function */ iret1 = pthread_create( &thread1, NULL, print_message_function, (void*) message1); iret2 = pthread_create( &thread2, NULL, print_message_function, (void*) message2); /* Wait till threads are complete before main continues. Unless we */ /* wait we run the risk of executing an exit which will terminate */ /* the process and all threads before the threads have completed. */ pthread_join( thread1, NULL); pthread_join( thread2, NULL); printf("Thread 1 returns: %d\n",iret1); printf("Thread 2 returns: %d\n",iret2); exit(0); } void *print_message_function( void *ptr ) { char *message; message = (char *) ptr; printf("%s \n", message); } 
1: #include <pthread.h> 2: void *print_message_function( void *ptr ); 3: main() 4: { 5: pthread_t thread1, thread2; 6: char *message1 = "Thread 1"; 7: char *message2 = "Thread 2"; 8: int iret1, iret2; 9: /* Create independent threads each of which will execute function */ 10: iret1 = pthread_create( &thread1, NULL, print_message_function, (void*) message1); 11: iret2 = pthread_create( &thread2, NULL, print_message_function, (void*) message2); 12: /* Wait till threads are complete before main continues. Unless we */ 13: /* wait we run the risk of executing an exit which will terminate */ 14: /* the process and all threads before the threads have completed. */ 15: pthread_join( thread1, NULL); 16: pthread_join( thread2, NULL); 17: printf("Thread 1 returns: %d\n",iret1); 18: printf("Thread 2 returns: %d\n",iret2); 19: exit(0); 20: } 21: void *print_message_function( void *ptr ) 22: { 23: char *message; 24: message = (char *) ptr; 25: printf("%s \n", message); 26: } 

 Where is image????

Advertisements

About siegzeit

I exist. I breathe. I sleep. What else do you need to know?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: