Click here to Skip to main content
15,897,151 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

How to interact with System calls, Interrupt of Operating system by using Core Java.


thanx in advance
Posted

1 solution

There is no generic interface into the OS from Java. The application is running within the a JVM and the only access you have directly is through classes like java.lang.System which provides hooks into the OS.

For any specific case where you want to catch I/O interrupts, I think the best but would be to create a higher level interface in C++ and then load that the JVM to access it. However you may well find, if you bother to think about your requirements, that there is a higher level and easier way to achieve your goal.

Do you really need to know when low level interupts fire or can you just listen for the mouse, file system or keyboard?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900