QuickLogic Interview Question

what makes RTOS different? how do you implement malloc? SPI vs I2C?