With the rapid advancement and widespread applications of information technology in the manufacturing shop floor, a huge amount of real-time data is generated, providing a good opportunity to effectively respond to unpredictable exceptions so that the productivity can be improved. Thus, how to schedule the manufacturing shop floor for achieving such a goal is very challenging. This work addresses this issue and a new multi-agent-based real-time scheduling (MARS) architecture is proposed for an Internet of Things (IoT)-enabled flexible job shop. Differing from traditional dynamic scheduling strategies, the proposed strategy optimally assigns tasks to machines according to their real-time status. A bargaining-game-based negotiation mechanism is developed to coordinate the agents so that the problem can be efficiently solved. To demonstrate the feasibility and effectiveness of the proposed architecture and scheduling method, a proof-of-concept prototype system is implemented with Java agent development framework (JADE) platform. A case study is used to test the performance and effectiveness of the proposed method. Through simulation and comparison, it is shown that the proposed method outperforms the traditional dynamic scheduling strategies in terms of makespan, critical machine workload, and total energy consumption. be obtained from the IEEE by sending a request to pubs-permissions@ieee.org. Recently, investigations have been made by a number of scholars on multi-agent-based dynamic scheduling [22][23]. However, most of these researches mainly focus on the architectures of multi-agent systems (MAS) and negotiation protocols among the agents, as well as the application of distributed features of MAS for task allocation in a traditional manufacturing shop floor [24]. Few of them consider the real-time-data-based interaction between machines and other distributed resources in an IoT-enabled flexible job shop. As a result, often the performance of efficiency is degraded and