Cut a 3-row carpet tack strip to a length equal to the width of the threshold opening with metal aviation snips. Note that most tack strips feature only 2 rows of tacks and are considerable narrower in width than 3-row strips. Take care not to inadvertently purchase the wrong tack strips.
Position the tack strip over the seam between the edge of the carpet and the threshold.
Hold the tack strip steady, and drill holes through the tack strip and into the concrete in 6-inch increments with a masonry bit while wearing eye protection and heavy gloves.
Fasten the tack strip to the floor by driving a 1 1/2-inch fluted masonry nail through each drilled hole with a hammer.
Apply a length of double-sided tape next to the entire length of the tack strip.
Apply a length of double-sided tape to the floor, extending away from the center of the tape applied in step 5, to form a "T" with the tape.
Lower the carpet over the tape and onto the tack strip, then gently tap the edge of the carpet into the tack strip with a hammer. Trim away any excess carpet with a utility knife.