Arduino MKR Timer, thread and multithread

Hi.

I’m using 1 arduino mkr 1400 GSM + mkr gps module + 3 axis accelerometer.

It’s possible to use one multithread structure to update my gps coordinates 5 in 5 minutes and run always the accelerometer without interruption ?

Thread 1 : start gps > search location > update latitude/longitude

Thead 2 : run accelerometer without interruption.

I’m trying to use:
#include <Thread.h>
#include <ThreadController.h>

ThreadController controllThreads = ThreadController();

Thread checkAccelerometerThread = Thread();
Thread updateConnectivityAndGpsThread = Thread();

But GPS interrupt the acceleremeter. It’s possible to execute in background 5 in 5 minutes ?

What made you think that your question has anything to do with the Website and Forum section which is clearly stated to be for "Improvements for the web system, applications to moderator, spam, etc."? I have suggested to the Moderator to move it to the MKR section.

This sort of carelessness makes unnecessary work for the Moderators.

...R

Robin2:
What made you think that your question has anything to do with the Website and Forum section which is clearly stated to be for "Improvements for the web system, applications to moderator, spam, etc."? I have suggested to the Moderator to move it to the MKR section.

This sort of carelessness makes unnecessary work for the Moderators.

...R

Sorry but this is an error... I create the topic in "programming questions" because this is not exclusive from MKR , I don't know why is created on "Website and Forum"

While I have never used tried to run multiple threads at the same time, I did come across the "Scheduler" Library, that looks like it might be what your after.

Here is the page on it.
Arduino - Scheduler