CSC209H1 Lecture Notes - Signal (Ipc), Job Control (Unix), Function Pointer
Document Summary
// call the function that f points to printf (%dn, (*f)(5)); Unexpected/unpredictable asynchronous events: floating point error, death of a child, interval timer expired (alarm clock, terminate, suspend, quit and kill a process. Events are called interrupts: when the kernel recognizes an event, it sends a signal to the process, normal processes may send signals. For of communications btwn processes: when a program forks into 2 or more processes, rarely do they execute independently, ex. 2 develop a map function that takes an array of integers and a. Compar is a pointer to a comparison function for the elements to be sorted. Just give a pointer to a function like strcmp. Similar to bserach() for binary search often handled by signals. To transfer data between processes, we will use pipes and sockets: signals are generated by. The program itself, other programs or the user.