Environment-friendly internet of things real-time control method under Web environment and based on pool technology

The invention discloses an environment-friendly internet of things real-time control method under the Web environment and based on the pool technology. The method is suitable for a pollution source real-time monitoring system with the B/S architecture. Referred pools comprises the connection pool, the controlling pool, the control waiting pool and the data pool, wherein the connection pool is used for storing Socket connection information of a monitoring terminal, a browser and the like, the controlling pool and the control waiting pool are used for storing control commands sent to a remote target device from a browser side, and the data pool is used for storing various kinds of data. According to the environment-friendly internet of things real-time control method, concurrency control over remote devices from the browser side is achieved based on the pool technology, and the control result without source identification can be accurately returned to the browser which initiates control.