We constructed a real-time tsunami prediction system using the Dense Oceanfloor Network System for Earthquakes and Tsunamis (DONET). This system predicts the arrival time of a tsunami, the maximum tsunami height, and the inundation area around coastal target points by extracting the proper fault models from 1,506 models based on the principle of tsunami amplification. Since DONET2, installed in the Nankai earthquake rupture zone, was constructed in 2016, it has been used in addition to DONET1 installed in the Tonankai earthquake rupture zone; we revised the system using both DONET1 and DONET2 to improve the accuracy of tsunami prediction. We introduced a few methods to improve the prediction accuracy. One is the selection of proper fault models from the entire set of models considering the estimated direction of the hypocenter using seismic and tsunami data. Another is the dynamic selection of the proper DONET observatories: only DONET observatories located between the prediction point and tsunami source are used for prediction. Last is preparation for the linked occurrence of double tsunamis with a time-lag. We describe the real-time tsunami prediction system using DONET and its implementation for the Shikoku area