Unix

I agree with Masood that there is no clear answer - it depends on the technology you need use / develop for or software you need to use thus it is very subjective. If you need to develop for any Apple API macOS is a must. But you may install your Hackintosh and run it on regular PC. Microsoft came out with .NET Core which allows to white .NET C# for any OS in any OS. If you want to combine both world at the same time you may use Virtual Machines or when on macOS you can use Parallels or VMWare Fusion. Each 'world' has its cons and pros. Last but not least, I would not say that Mac are more secured - macOS is based on Unix thus it is safer than Windows but still has vulnerabilities - no software is perfect.

ProgrammingLanguage:

Technology:

Make use of a time-based scheduler Cron, which is available on Debian (as well as on other Unix-like operating systems). Quartz offers a seamless integration with Java applications. Scheduling a particular script (e.g. restarting server) can be easily done using Cron expressions in form of a string consisting of five or six fields (separated by white space), which are respectively responsible for: minutes, hours, day of month, month, day of week, year.

1) Implement a procedure to restart server (e.g. integrated in Java application or through system script).
2) Make use of Quartz to provide Cron functionality to Java application, in particular to make use of Cron expressions.
3) Provide an option for (privileged/administrator) users to manage Cron expression string for restarting server in web interface.
4) Explain in a short summary the principle of functioning of Cron expressions, providing examples of the most common usages.

Subscribe to Unix