How to perform a heavy and long process in cron jobs?

How to perform a heavy and long process in cron jobs?