Cain, James M.in full James Mallahan Cain ( born July 1, 1892 , Annapolis, Md.Maryland, U.S.—died Oct. October 27, 1977 , University Park, Md. Maryland ) novelist whose violent, sexually obsessed, and relentlessly paced melodramas epitomized the “hard-boiled” school of writing that flourished in the United States in the 1930s and ’40s. He was ranked with Dashiell Hammett and Raymond Chandler as one of the masters of the genre. Three classics of the American screen were made from his novels: Double Indemnity (1936; film 1944), Mildred Pierce (1941; film 1945, TV miniseries 2011), and The Postman Always Rings Twice (1934; stage version 1936, films 1946, 1981).

Cain graduated from Washington College, Chestertown, Md.Maryland, in 1910 and edited an army paper while serving overseas during World War I. After returning to Washington College for a master’s degree, he worked as a newspaperman in Baltimore on the American and then on The Sun. He was a professor of journalism at St. John’s College, Annapolis, from 1923 to 1924 , and an editorial writer on the World in New York City from 1924 to 1931. For a short time he was the managing editor of The New Yorker.

His Cain’s first novel, The Postman Always Rings Twice, published when he was 42 years old, was a spectacular success. Its sordid milieu, characters who seek to gain their ends through violence, and taut, fast-paced prose set the pattern for most of his later books. Serenade (1937) was daring for its period in its presentation of a bisexual hero. Three of a Kind (1943) contained the short novels Sinful Woman,Double Indemnity, and The Embezzler. His books continued to appear after World War II—among them The Butterfly (1947), The Moth (1948), The Root of His Evil (1954), The Magician’s Wife (1965), and Rainbow’s End (1975)—but none approached the success of his earlier works.

Posthumously published works include Cloud 9 (1984) and The Enchanted Isle (1985). The Cocktail Waitress, compiled from a number of manuscripts, was published in 2012. The novel chronicles the vicissitudes of a young widow who becomes entangled with two men she meets while working as a server at a high-end lounge.