[comp.sys.amiga] May one AllocMem during a SoftInt?

jgh@root.co.uk (Jeremy G Harris) (09/11/87)

The Subject says it all....

Thanks in antici.... . .  .  .  pation
jeremy
-- 
Jeremy Harris			jgh@root.co.uk

dillon@CORY.BERKELEY.EDU (Matt Dillon) (09/13/87)

	You can do anything within a Software Interrupt as long as it doesn't
confuse what is running normally.  For example, if you are in the middle of 
a graphics library call, get a software interrupt, and your software
interrupt makes another graphics call (both calls locking layers), your 
machine freezes.

	Along the same lines it probably isn't a good idea to call AllocMem()
from a software interrupt if THAT PARTICULAR TASK is already in the middle 
of an AllocMem().

	A Software interrupt is simply a context within the task... other
tasks still run.

	Needless to say, you cannot call AllocMem() from a hardware interrupt.

						-Matt