what is an ecosystem? compare and give examples of open and closed ecosystems

There are plenty of links with definitions and examples here:

http://lmgtfy.com/?q=ecosystem+open+closed