Temperature Synchronization in Two Adjacent Cavities with Operating Heaters