For example, there may be three buyers who have placed orders for buying Microsoft shares at $100, $105 and $110, and there may be four sellers who are willing to sell Microsoft shares at $110, $112, $115 and $120. The exchange (through their computer operated automated trading systems) needs to ensure that the best buy and best sell are matched, which in this case is at $110 for the given quantity of trade.
Portfolio managers are professionals who invest portfolios, or collections of securities, for clients. These managers get recommendations from analysts and make the buy or sell decisions for the portfolio. Mutual fund companies, hedge funds, and pension plans use portfolio managers to make decisions and set the investment strategies for the money they hold.