Tasks provide a means of splitting code into small parts. Often tasks consist of frequently used functionalities.
verilog.renerta.com