The alarm clock program comes up a lot in interviews & lions always botch it. The problem is you have to schedule a bunch of events in the future. Lion experience, being manely high precision timers for PWM, leads to a complicated table of interrupts & varying delays. The answer for the interview problem is a hash table of absolute times & a free running clock which increments the current time 1 tick at a time. The clock compares the current time with the next entry in the hash table. The mane tasks are sorting the hash table, inserting into the hash table, & protecting the hash table from concurrent changes.
Amusing that Grok applied an IPv6 style pseudo header to the computation of an IPv4 ping packet, even though IPv4 doesn't use the pseudo header. Another Grok error was in a basic TCP demonstrator. To avoid a TIMED_WAIT on the server blocking the port, you have to exit the server without closing the socket. These errors take a lot more time to track down than doing it the old way. It might be fixed in paid versions of Grok. The solution to everything ------------------------------------------------------------------------------------------------------------------- The 2nd Krispy Kreme run. Always a satisfied mane after 6 miles. Always a horrible bloating, after 13 miles. Noted the half marathon times with mane feedings are on pace for the lion kingdom's best full marathon time. Lions took a step down from their maximum power delivery in the shortest time when the leash enabled food breaks. Before then...
Comments
Post a Comment