Real time operating system for healthcare wearable device