LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-30-2018, 12:55 AM   #16
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,863

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311

Quote:
Originally Posted by hazel View Post
I remember once seeing some code in which a signal handler changed a global variable and the main loop just checked that variable synchronously each time it ran. The trouble is that if the loop is waiting anyway (say for user input) it might not get to checking for signals for quite some time.
Probably Z80, Commodore 64? That was long time ago....
And it was about hardware interrupt which was (more or less) [something like] a function or subroutine which was simply called when the interrupt arrived. It made what it needed to do and then the program returned to the original point (before the interrupt) and did continue its execution.
It worked without threads, without multitask/multiuser/VM or other tricks. There was no protected RAM or protected mode....
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How does Linux handle programs and execution memory? Lsatenstein Linux - Desktop 3 04-27-2015 05:54 PM
programs to be run on boot (and other events) KansaiRobot Linux - Newbie 1 03-09-2015 04:38 AM
Bash- Some Simple Code on how to log events and handle errors mtm100 Linux - Newbie 3 10-28-2011 12:41 PM
handle information in foreign languages tooparam Linux - Software 2 02-01-2006 12:11 PM
loading procedural languages in Postgresql sibtay Linux - Software 1 12-09-2004 08:23 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration