 <p>I would also recommend checking out <a href="https://github.com/nicandris/com.example.forkbomb" rel="nofollow">this guy's github</a> for a good example of a fork bomb. Even though he uses an activity to launch it you could modify it to run in a service.</p>