Both devices are almost same - they both monitor the heart beat and keep the heart beating at the proper speed. However AICD can also delivery a high impulse current to deliver a shock and revive the heart- Pacemaker lacks this capacity.