15/20
Sign inSign up free

1439. Check Many Services in Parallel

hard 40 XP ~15 minHands-on lab Pro

/home/student/net/check_services.py HOSTFILE reads lines of host:port. For each it connects, sends PING followed by a newline, and expects a reply starting with PONG within 1.5 seconds. It works, but it checks one service at a time, and with a dozen slow services the whole run takes far too long.

This is a Pro problem

Pro unlocks every lab and quiz, all roadmaps and a full daily plan.

Unlock with Pro

Teaching or writing about this? Embed this lab on your page

TerminalNot started

Pro lab

Upgrade to open a machine for this problem.

See Pro