Terrorism will not end until:
* Muslims stop saying the murderers aren't really terrorists and instead denounce them and their actions without making excuses.
* Moderate Muslims stop hiding in fear from the fundamentalists and start turning them in to police when planning attacks.
* Muslims as a group recognize the right of others to live as they choose, instead of the second class status under Shariah law (dhimmitude) as long as they pay extra taxes and suffer periodic humiliations.
* Muslims both recognize and reject the violent core of the Koran, with the more than 150 verses calling for death of the infidel, don't make friends with unbelievers, kill those who were Muslim but change faiths, killing critics of the faith. Admit that these things exist, as exist in the Old Testament of the Christian Bible, and then say those things are no longer applicable to today's world.
Then, and only then, will terrorism end. Right now, a few guys blowing themselves up to scare others into submitting to second class status under Islam or converting to prevent being killed is a low cost way to conquer a nation - hence why it is done around the world so many times by many Muslim groups every year.