This is an original proceeding in mandamus. The petitioner and one Whitfield, both residents of the city and county of San Francisco, were involved in a collision in San Mateo County from which both claimed damages. On February 9, 1934, a complaint was filed by *9 Whitfield in the Superior Court of San Francisco seeking damages from petitioner. On February 13, 1934, petitioner filed a complaint in the Superior Court in San Mateo County seeking damages from Whitfield. Summons was served in the latter case on the same day. In the former case summons was served on February 17th. Thereafter petitioner applied to the Superior Court in San Francisco for an order staying proceedings in the Whitfield case on the ground that exclusive jurisdiction rested with the Superior Court in San Mateo County since service of process had first been made in the proceeding commenced in that county. This motion was denied and the petitioner seeks a writ of mandate to stay such proceedings.
After denial of the motion here involved WTiitfield applied to the Superior Court in San Mateo County for a similar order staying the proceedings pending in that court. This motion was granted and this is the subject of the second proceeding, against the San Mateo court, numbered 9563, and hereafter determined.
(DeBrincat
v.
Swart, post,
p. 756 [
The concurrent jurisdiction of the two courts in the first instance is conceded. (Sec. 395, Code Civ. Proc.) The single question urged by petitioner is whether as between two courts having concurrent jurisdiction of the subject matter of a cause of action in personam exclusive jurisdiction of the cause attaches to the court in which the service of process was first made or to the court in which the complaint was first filed.
• The interest in the question has been aroused by the recent decision in
Todhunter
v.
Smith,
The question is one of first impression in this state. Proceedings under the Probate Code are not helpful because it is there provided that the court in which a petition for letters has first been filed shall have exclusive jurisdiction of the administration of the estate. (Sec. 301, subd. 3.) Actions in rem involving specific property or objects are *10 controlled by the rule that exclusive jurisdiction attaches to the court where jurisdiction over the res was first acquired. (15 C. J., p. 1161.) But we have found no authority in this state holding which of two courts having concurrent jurisdiction of actions in personam acquires exclusive jurisdiction of the litigation.
By the terms of section 416 of the Code of Civil Procedure a court is deemed to have acquired jurisdiction of the parties from the time of the service of the summons and a copy of the complaint and thereafter has “control of all the subsequent proceedings”. The jurisdiction thus acquired relates back to the filing of the complaint.
(Gardiner
v.
Boyer,
Throughout the decisions we find the expression that “the court which first acquires jurisdiction, . . . retains its jurisdiction and may dispose of the whole controversy”. (15 0. J., p. 1134, and cases cited in note 58; 7 R. C. L., p. 1067.) In
United States
v.
Lee,
Our conclusion is therefore that in actions of this character the court in which process is first served has jurisdiction over the whole litigation and has full power to require the parties to come into that court for a complete adjudication of the controversy.
But it does not follow from this that the writ of mandate should issue. This writ is ordinarily one of discretion and does not issue as a matter of absolute right when not necessary to prevent an injustice to the parties.
(Gay
v.
Torrance,
The petition is denied and the alternative writ is discharged.
Sturtevant, J., and Spence, J., concurred.
