3 ms·
You don’t need the OS to be written in that language. It’s enough to wrap the APIs into these interfaces. CPUs are much faster these days, for many tasks modern
by Const-me 8y ago
You don’t need the OS to be written in that language. It’s enough to wrap the APIs into these interfaces. CPUs are much faster these days, for many tasks modern PCs are often IO bound, count of kernel calls rarely becomes the bottleneck.
Windows does just that with their PowerShell. Here’s an example that copies a file remotely on the server:
Invoke-Command -ComputerName SERVER -credential USERNAME
-ScriptBlock { Copy-Item -Path C:\Temp\1.txt -Destination C:\Temp\2.txt }
Copy-Item cmdlet doesn’t require arguments to be files, it can copy some other objects too, registry keys, installed certificates, etc.