#include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> // This program works well in linux // or use gcc compiler int main(int c, char **v) { /*fork is used to create a child process and make the process to sleep for given milli seconds and atlast the process with minimum sleep get printed using this we can sort the array Note: This is fun program cannot be used in productive environment Time complexity is high for big numbers */ while (--c > 1 && !fork()); sleep(c = atoi(v[c])); wait(0); return 0; }
Docker is used to run software packages called "containers". Containers are isolated from each other and bundle their own tools, libraries and configuration files; they can communicate with each other through well-defined channels --Wikipedia I have already written a article about the containers you can check out in here https://thangaayyanar.blogspot.com/2018/06/containers.html This time, let's learn more about docker engine how we can use this. The important things we need to know in docker are Docker Image: The container can be created with the help of Image. The Image file consists of code, libraries, environment variable...
Comments
Post a Comment