There is a task:
The parent thread of the program must read user-entered strings and put them at the beginning of the linked list. Lines longer than 80 characters can be cut into several lines. When you enter a blank line, the program should display the current state of the list. The child thread wakes up every five seconds and sorts the list in lexicographical order (use bubble sort). All list operations should be synchronized using mutex.
How can I solve this problem? Tell me where to start.
Mainfunction. - VladD