Hi Manish
This depends on the accuracy that you need.
The task can be scheduled from the ENT0 interrupts (at the same time) by sending an event, such as
fnInterruptMessage(GPS_TASK, EVENT_PPS);
(or similar).
However, there will be a delay between sending the event and the task handling it, which may differ between the two boards, depending on what is happening at the time.
In some cases the processing can be divided into two parts; critical processing and non-critical processing. This means that the critical processing is peformed directly in the interrupt routine (such as making accurate time stamps of the moment the interrupt occurred or capturing some other time critical information). Later the task handles any additional processing that can be performed in a less time critical manner, as well as any clean-up operations.
Most often this strategy results in a suitable solution but it depends on the absolute response times needed and the amount and type of processing involved.
Regards
Mark