NEW YORK — Locked in a taut, thrill-a-minute second set, Novak Djokovic and Juan Martin del Potro headed to a tiebreaker and promptly produced a 20-stroke masterpiece of a point befitting a pair of past US Open champions.

More than a dozen shots in, defending champion Djokovic tossed up a lob. Del Potro, the 2009 champion, sprinted with his back to the court, got to the ball and lofted a lob the other way. Djokovic slammed an overhead. Del Potro somehow kept the ball in play. Djokovic laced a drop shot. Again, del Potro got there, attempting another lob. It landed long.

A point from a two-set lead, Djokovic threw his head back, roared ‘‘Come on!’’ and pumped his arms. Del Potro leaned his elbows atop the net, hunched over and rested his head on his arms.

Advertisement - Continue Reading Below

Close and compelling as their quarterfinal was, it might as well have been over right then and there. Djokovic’s down-the-line backhand winner moments later ended the tiebreaker, gave him a commanding lead, and sent him on the way to a 6-2, 7-6 (7-3), 6-4 win Thursday night that put him in his 10th consecutive Grand Slam semifinal.

‘‘We played some incredible rallies and incredible points,’’ Djokovic said. ‘‘It’s always entertaining, always so much fun, playing in these night sessions.’’

The second-seeded Serb will face fourth-seeded David Ferrer of Spain on Saturday, with a spot in Sunday’s final at stake. Ferrer advanced to his fourth career major semifinal by using his high-energy brand of leg-churning, ball-chasing tennis to outlast eighth-seeded Janko Tipsarevic of Serbia, 6-3, 6-7 (5-7), 2-6, 6-3, 7-6 (7-4), in 4 hours, 31 minutes.

Olympic champion Andy Murray and 2010 Wimbledon runner-up Tomas Berdych — who eliminated 17-time major champion Roger Federer — earned their semifinal berths Wednesday.

Under the lights at night in Arthur Ashe Stadium, the showcase matchup of Djokovic’s squeaky-sneaker defense, reflex returns, and line-catching groundstrokes against the seventh-seeded del Potro’s big-as-can-be forehands topping 100 miles per hour lasted a few minutes past three hours. But it was tremendously good every step of the way, and the second set alone was 84 minutes long.

Djokovic and del Potro, a 6-foot-6-inch Argentine, each was left smacking himself in the head with a racket after an ugly mistake — the shot-making was so high-caliber that any miscue really stood out. The full house responded more than once with standing ovations, but the loudest and longest came before the tiebreaker.

These are the only men who have managed to beat Federer and Rafael Nadal, owner of 11 major trophies, in the course of a single Grand Slam tournament. Djokovic and del Potro each did it while on the way to the championship at Flushing Meadows.

In the three years since del Potro’s triumph, though, he hasn’t reached another major final. He was sidelined for most of the 2010 season — and missed out on a chance to defend his US Open title — because of a right wrist injury that required surgery. And he’s had problems with his left wrist recently., limiting the effectiveness of his two-fisted backhand.

Still, he beat Djokovic for the bronze medal at the London Olympics last month and gave the guy all he could handle throughout the second set. In what would turn out to be the match’s final game, del Potro — who ended Andy Roddick’s career by beating him Wednesday — at least got a chance to briefly celebrate on what has become Djokovic’s territory, smacking a brilliant backhand winner and hopping on a courtside advertising wall while raising his arms overhead.

‘‘It’s amazing for me to share with the crowd this kind of moment,’’ del Potro said.

Fans leaped out of their seats. Even Djokovic acknowledged the shot, using his racket to applaud.

But otherwise, this was Djokovic’s night to shine. He is into the US Open semifinals for the sixth year in a row, and the streak of 10 he has at all major tournaments — dating to Wimbledon in 2010 — ties Rod Laver and Ivan Lendl for the second-longest, behind Federer’s record of 23.

‘‘He’s playing better and better, every day and tournament,’’ del Potro said.

Djokovic is bidding to raise his Grand Slam trophy collection to six, and on Thursday he displayed all of the skills that have carried him to the top.

He dulled del Potro’s intimidating serves, accumulating 13 break points and converting four. He served well enough to face only three break points, saving all but one.

What will be remembered most is that marvelous second set, one which del Potro led, 5-3, and served for at 5-4 but got broken. One that included a game of more than 15 minutes, when del Potro served while suddenly trailing, 6-5, and needed to save three set points. He held, sending it to the tiebreaker.

Djokovic emerged there, though.

‘‘Just happy to get through,’’ Djokovic said.