I think is some sort of project.
Maybe I can give you the idea ( not more than that ).As you already know you have to use POSIX threads ,
pthreads .
What aplication , is better for you to wsho the importance of multithreading ?
I build myself an useful chat program.Where is multithreading ?
My chat program is composed in 3 part's . One main part ( in main() function ) for Internet socket connection ( .. ) , and to threads ( POSIX threads ) , one receives the data's ( strings from server ) and writes them to main window and the another POSIX thread ( pthread ) , using a loop for ( for(;
) , send data ( strings ) to server [ to be send to others clients by they client socket descriptor .. retain somewhere in a structure , or I don't know .. what do you want ..].
Clear enough ? The importance of multreading aplication ? You can use POSIX threads in a chat server / client aplication , for better exchange of information ( one thread to send , other to receive/write , and maybe other to show live time ./ clock . or something else ).
Cheer's !