Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Pseudo-code for Microsoft Windows 95
- //---idea---TiM
- //boot the system
- init __boot;
- //load stuff for keyboards, file system drivers, and Display
- init __load_basic_drivers;
- //prepare BoSD
- init __prepare__ BLUE_SCREEN_OF_DEATH;
- //enter event loop
- while(!crashed)
- {
- sleep(1300); //milisecs
- load_kernel_sevices();
- if(system_still_running)
- {
- try
- {
- kernel_load( all(system_programs) );
- kernel_unload( most_useful(system_programs) );
- if(!unloaded(last_kernel_instruction)) throw Exception;
- }
- catch(Errors)
- { fire(BLUE_SCREEN_OF_DEATH); }
- }
- kernel_load( Graphics );
- kernel_load( Windows_Explorer );
- kernel_init( set( cpu_execution_speed( random % 100 ) ) )
- bool legal = verify(Microsoft.Paid.isTrue());
- if(legal)
- {
- call( persuading_daemon(ask_for_more_money) )
- }
- else
- {
- kernel_unload(kernel, silently=true, gradually=yes);
- }
- if(system_is_ok)
- {
- attempt(crash);
- }
- if(system_survived_last_crash_attempt)
- {
- kernel_load( all(backdoors_and_memory_exploits) );
- init __set(BLUE_SCREEN_OF_DEATH, fire(in(2000, seconds)));
- }
- if(system.isIdle())
- {
- kernel_init( all( sleep(hardware) && sleep(software) ) );
- kernel_interrupt( DISABLE_ALL );
- set( kernel.neverWakeUp = true );
- }
- while(still_not_crashed)
- {
- do (NOTHING for random.minutes)
- wait_for_user_events();
- attempt(crash) && break;
- }
- if(is lucky)
- {
- kernel_programs_manager.set( FAIL );
- load( all(programs), haphazardly );
- }
- if(execution_reached_this_point)
- {
- kernel_init( kill_All_useful_programs );
- fire(BLUE_SCREEN_OF_DEATH);
- kernel_unload( kernel );
- }
- assert(system_is_DEAD);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement