Is it possible to set up a linux environment in atom on windows?

With gcc compiler, I can not compile the program which has the fork function. How can I run a program with fork functions in atom on windows system?

It’s not possible using Atom. What you want is to Google for “gcc compile for linux on windows” (and you’ll notice that Google is familiar enough with the query to autocomplete it) and you’ll find tutorials such as this one written by the class of open-source veterans who work in C and have to support multiple platforms.