The personal-computer industry might not exactly be in recovery mode following several years of declining sales, but the latest figures on PC shipments suggest the industry might at least be showing signs of stability.

That’s the assessment from tech research firm Gartner, as it released its figures for PC sales during the second quarter of the year. According to Gartner, worldwide PC shipments totaled 62.1 million units between April and June, an increase of 1.4 percent from the same period a year ago. PC sales in the United States also increased by 1.7 percent, to 14.5 million units.

Get tech news in your inbox weekday mornings. Sign up for the free Good Morning Silicon Valley newsletter.

According to Gartner, it was the first time PC sales rose on a year-over-year basis in six years. Sales to business customers were behind the sector’s mild gains, but Gartner analyst Mikako Kitagawa said the overall PC market continued to be affected by changing attitudes of consumers toward PCs.

“Consumers are using their smartphones for even more daily tasks, such as checking social media, calendaring, banking and shopping, which is reducing the need for a consumer PC,” Kitagawa said.

And Kitagawa added that even the small gains from business PC sales might not keep the industry on the rise in the coming years.

“PC momentum will weaken in two years when the replacement peak for Windows 10 passes,” Kitagawa said. “PC vendors should look for ways to maintain growth in the business market as the Windows 10 upgrade cycle tails off.”

Among the leading PC makers, Lenovo and HP were basically tied for the No. 1 spot worldwide. Lenovo had 13.6 million shipments, while HP shipped 13.59 million PCs, which Gartner said gave each of those companies around 21.9 percent of the total PC market.

Related Articles Affordable homes, some for the homeless, eyed near San Jose malls

Four ex-eBay workers who sent live spiders to couple to plead guilty in cyberstalking case

$48 million deal: Berkeley Farms Hayward site is bought, will be logistics center

Tesla CEO Elon Musk’s next big bet rides on better batteries

San Jose City College gets $112 million career complex Dell, Apple and Acer Group rounded out the top five PC vendors worldwide.

In the U.S., HP’s 4.25 million shipments gave it 29.3 percent of the market. Dell came in second place with 4.15 million PC shipments and a 28.6 percent market share. Lenovo took third place with 2.16 million shipments, and Apple and Acer completed the list of the top five PC sellers in the country.