On October 15, 1964, officers of the Sacramento Police Department, called to the scene of a disturbance, arrested petitioner who was standing on a public sidewalk with a pistol in his hand. On that day he was charged in the municipal court with committing a misdemeanor in violation of Penal Code section 417 (exhibiting a firearm in a threatening manner). On November 17, 1964, after a preliminary hearing at which it appeared that petitioner had been convicted of a felony, he was charged by information in the superior court with committing a felony in violation of Penal Code section 12021 (possession of a concealable weapon by a person who has been convicted of a felony).
On January 20, 1965, petitioner pleaded guilty to the charge of violating section 417 and was sentenced to 90 days in the county jail. On January 26, 1965, he moved in the superior court to dismiss the information charging a violation of section 12021 on the ground that it was barred by Penal Code section 654. 1 The motion was denied, and petitioner now seeks a writ of prohibition to prevent his trial.
Petitioner contends that exhibiting and possessing the pistol constituted a single act and that therefore his prosecution for violating section 12021 is barred by his conviction of violating section 417. The Attorney General contends that even if the evidence at petitioner’s preliminary hearing did not show possession apart from that involved in the section 417 violation, it is reasonable to infer that petitioner possessed the pistol for some time before exhibiting it and that at his trial a separate act of possession within the meaning of section 654 may be readily established.
If only a single act or an indivisible course of criminal conduct is charged as the basis for a conviction, the defendant can be punished only once although he may have violated more than one statute. Whether a course of criminal conduct is divisible and therefore gives rise to more than one
*825
act within the meaning of section 654 depends on the intent and objective of the actor.
(Neal
v.
State of California,
Penal Code section 954 provides for the joinder in a single accusatory pleading of two or more offenses connected in their commission or having a common element of substantial importance in their commission.
(People
v.
Scott,
We pointed out in
Neal,
however, that “Section 654’s preclusion of multiple prosecution is separate and distinct from its preclusion of multiple punishment. The rule against multiple prosecutions is a procedural safeguard against harassment and is not necessarily related to the punishment to be imposed; double prosecution may be precluded even when double punishment is permissible.”
(Neal
v.
State of California,
There has been growing concern that both criminal defendants and the public fisc are entitled to protection from successive prosecutions for closely related crimes. In 1961 the State of Illinois adopted a new criminal code that requires joinder of all known offenses based on the same act. (Ill. Rev. Stat. 1963, ch. 38, par. 3-3.) This requirement significantly alters Illinois law that had permitted successive trials of a defendant for each of three murders committed at one time until ultimately the death penalty was imposed.
(People
v.
Ciucci,
*827
8 Ill.2a 619 [
If needless harassment and the waste of public funds are to be avoided, some acts that are divisible for the purpose of punishment must be regarded as being too interrelated to permit their being prosecuted successively. When there is a course of conduct involving several physical acts, the actor’s intent or objective and the number of victims involved, which are crucial in determining the permissible punishment, may be immaterial when successive prosecutions are attempted. When, as here, the prosecution is or should be aware of more than one offense in which the same act or course of conduct plays a significant part, all such offenses must be prosecuted in a single proceeding unless joinder is prohibited or severance permitted for good cause. Failure to unite all such offenses will result in a bar to subsequent prosecution of any offense omitted if the initial proceedings culminate in either acquittal or conviction and sentence. 5
We recognize that in many places felonies and misdemeanors are usually prosecuted by different public law offices and that there is a risk that those in charge of misdemeanor prosecutions may proceed without adequately assessing the seriousness of a defendant’s conduct or considering whether a felony prosecution should be undertaken. When *828 the responsibility for the prosecution for the higher offense lies with a different public law office there is also the risk that a well advised defendant may plead guilty to a misdemeanor to foreclose a subsequent felony prosecution the misdemeanor prosecutor may be unaware of or may choose to ignore. Cases may also arise in which the district attorney is reasonably unaware of the felonies when the misdemeanors are prosecuted. In such situations the risk that there may be waste and harassment through both a misdemeanor and felony prosecution may be outweighed by the risk that a defendant guilty of a felony may escape proper punishment. Accordingly, in such eases section 654 does not bar a subsequent felony prosecution except to the extent that such prosecution is barred by that section’s preclusion of multiple punishment.
It bears emphasis, however, that the risk that a defendant guilty of a felony may escape proper punishment as a result of a conviction of a lesser offense is inherent in the preclusion by section 654 of multiple punishment. Thus, if an act or course of criminal conduct can be punished only once under section 654, either an acquittal or conviction and sentence under one penal statute will preclude subsequent prosecution in a separate proceeding under any other penal statute.
(People
v.
Tideman,
Let the peremptory writ of prohibition issue as prayed.
McComb, J., Peters, J., Tobriner, J., Peek, J., Mosk, J., and Burke, J., concurred.
The petition of the real party in interest for a rehearing was denied February 2, 1966, and the opinion was modified to read as printed above.
Notes
Seetion 654 provides: ‘ ‘ An act or omission which is made punishable in different ways by different provisions of this code may be punished under either of such provisions, but in no ease can it be punished under more than one; an acquittal or conviction and sentence under either one bars a prosecution for the same act or omission under any other. ’ ’
Since neither the offense proscribed by section 417, nor that proscribed by section 12021 is necessarily included within the other, either as defined in those sections or as pleaded against the petitioner
(People
v.
Marshall,
Section 954 does not distinguish felonies and misdemeanors in its provisions for joinder. It therefore authorizes the joinder of a misdemeanor count and a felony count in a prosecution in the superior court.
(People
v.
Bundte,
The needless harassment and waste of time and money of both the state and the defense arising from separate trials of closely related offenses is forcefully illustrated by
People
v.
Majors,
To the extent that
People
v.
Wilson,
