About the course
Once our program works correctly we can start focusing on making it faster. There are a number of tools to achieve that, one of them is to make the program do several things at the same time.
In Perl the most natural way to do that is by creating multiple processes using fork.
In this course you'll learn how to use fork to make your code faster. Maybe a lot faster.
Content
Available in
days
days
after you enroll
Available in
days
days
after you enroll
Available in
days
days
after you enroll
- Forking skeleton with functions (9:53)
- Showing process IDs (8:45)
- Showing exit code and common history (8:21)
- Forking, random, and seed (5:31)
- Forking skeleton without functions (6:07)
- Many forks (11:33)
- Showing parent process ID (2:15)
- Using pstree and htop to look at processes (6:42)
- Non-blocking (active) wait using waitpid (8:05)
- Non-blocking wait for multiple workers (9:10)
- Non-blocking handle multiple tasks with multiple workers (12:27)
Available in
days
days
after you enroll
- Functions to speed up (3:42)
- counter.pl - part 1 (12:34)
- counter.pl - part 2 (8:45)
- Prepare CSV files for processing, process CSV files (7:12)
- Parallel::ForkManager - simple example (5:11)
- Returning values using Parallel::ForkManager (4:41)
- Process CSV file using Parallel::ForkManager (2:32)
- Fetching URLs using Parallel::ForkManager (7:24)
Available in
days
days
after you enroll