Welcome to all from Kazakhstan!
To use jquery in appjs you can add a script tag in index.html in the normal way:-
<html>
<head>
<script src="js/jquery.js"/>
..
In app.js file you can then use the loaded jquery library in the ready event:
window.on('ready', function() {
var $ = window.$;
//now you can use jquery as you would normally..
//click a button with an id of test
$('#test').click();
});
Of course you can also write jquery code in index.html exactly as you would in a normal web page application.
We don't have a firm date on the desktop integration features. If you have particular windows features you want to access then there is a node module called node-ffi (
https://github.com/rbranson/node-ffi) this allows you to call windows api functions from nodejs (i.e. from the app.js file). As a temporary solution you could bundle a windows executable along with appjs, communicate with it via the command line or similar mechanism and get it to add tray icons and menus etc.
You can use the javascript function setTimeout to schedule events:
setTimeout(function() {
//this function is called every 5000 milliseconds
},5000);
Nodejs which is run in the app.js file has been designed to be event driven, none blocking in nature. This means it is optimised for responding to events with callback functions. The entire stack in nodejs is implemented in this way. This means that support for multiple threads is more limited than something like java or c. Ideally if possible you might be able to re-design as an event oriented rather than thread based program. There is a node module:
https://github.com/xk/node-threads-a-gogo which goes give you a nice interface to run threads. I do not know if this works on windows, it does work on linux. It is also possible to setup a cluster
http://nodejs.org/api/cluster.html this works cross platform although it might not be exactly what you are looking for.
There is no option to limit CPU activity so you would have to implement that yourself within the application you write.
/Simon