4 ms·
This reminds me of my university time as a student. In the realtime OS/programming course we needed to build an elevator with 4 cars in parallel entirely on an
by PinguTS 4y ago
This reminds me of my university time as a student. In the realtime OS/programming course we needed to build an elevator with 4 cars in parallel entirely on an i386 (Embedded) in an realtime OS including the simulation of people pressing the floor numbers.
- autoexec 4y agoYeah, this is bringing back memories for me too. Is controlling an elevator a common coding exercise? When I started learning C I was just learning on my own and wrote something like this too, although it was only 2 elevators I worked to limit the amount of time people in an office building spent waiting. At one point I had over 50 fake people each assigned to a floor and a schedule (including breaks and and lunches), and even cleaning staff who went floor to floor a couple times a day. I don't remember where the idea for it came from though.
- jeffreyrogers 4y agoI have had it as an interview question before.