Advertisement
djk77

pa1.h

Apr 1st, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. /**
  2. * @file pa1.h
  3. * @Author Michael Kosyakov and Evgeniy Ivanov (ifmo.distributedclass@gmail.com)
  4. * @date March, 2014
  5. * @brief Constants for programming assignment 1
  6. *
  7. * Students must not modify this file!
  8. */
  9.  
  10. #ifndef __IFMO_DISTRIBUTED_CLASS_PA1__H
  11. #define __IFMO_DISTRIBUTED_CLASS_PA1__H
  12.  
  13. /* %1d - local id, %5d - PID, e.g.
  14. * Process 1 (pid 12341, parent 12340) has STARTED\n
  15. */
  16. static const char * const log_started_fmt =
  17. "Process %1d (pid %5d, parent %5d) has STARTED\n";
  18.  
  19. static const char * const log_received_all_started_fmt =
  20. "Process %1d received all STARTED messages\n";
  21.  
  22. static const char * const log_done_fmt =
  23. "Process %1d has DONE its work\n";
  24.  
  25. static const char * const log_received_all_done_fmt =
  26. "Process %1d received all DONE messages\n";
  27.  
  28. #endif // __IFMO_DISTRIBUTED_CLASS_PA1__H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement